vertical slicing!
1
.gitignore
vendored
@ -1,6 +1,7 @@
|
||||
.idea
|
||||
lib-cov
|
||||
lib
|
||||
app/bower_components
|
||||
*.seed
|
||||
*.log
|
||||
*.csv
|
||||
|
||||
|
Before Width: | Height: | Size: 193 KiB After Width: | Height: | Size: 193 KiB |
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 3.7 KiB |
|
Before Width: | Height: | Size: 7.2 KiB After Width: | Height: | Size: 7.2 KiB |
|
Before Width: | Height: | Size: 318 B After Width: | Height: | Size: 318 B |
|
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
@ -2,7 +2,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<link rel="icon" type="image/png" href="../prototype-app/image/favicon.ico" />
|
||||
<link rel="icon" type="image/png" href="./images/favicon.ico" />
|
||||
<title>{{ 'label.product.title' | translate }}</title>
|
||||
<style>[data-ng-cloak] { display: none !important; }</style>
|
||||
</head>
|
||||
@ -39,7 +39,7 @@
|
||||
<table width="%100">
|
||||
<tr>
|
||||
<td width="30%">
|
||||
<img src="../prototype-app/image/MifosX_logo.png" alt="MifosX" width="150">
|
||||
<img src="./images/MifosX_logo.png" alt="MifosX" width="150">
|
||||
</td>
|
||||
<td width="70%">
|
||||
<h1>{{ 'label.product.name' | translate }}</h1>
|
||||
@ -103,7 +103,7 @@
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</a>
|
||||
<a class="brand" href="../">Mifos <strong>X</strong></a>
|
||||
<a class="brand" href="../../">Mifos <strong>X</strong></a>
|
||||
<div class="nav-collapse collapse" id="main-menu">
|
||||
<ul class="nav" id="main-menu-left">
|
||||
<li><a href="#"><i class="icon-home icon-white"></i>{{ 'link.home' | translate }}</a></li>
|
||||
@ -223,7 +223,7 @@
|
||||
</div>
|
||||
<!-- Le javascript
|
||||
================================================== -->
|
||||
<script type='text/javascript' data-main="js/loader.js" src='lib/requirejs/require.js'></script>
|
||||
<script type='text/javascript' data-main="scripts/loader.js" src='bower_components/requirejs/require.js'></script>
|
||||
<!-- Placed at the end of the document so the pages load faster -->
|
||||
</body>
|
||||
</html>
|
||||
69
app/scripts/loader.js
Normal file
@ -0,0 +1,69 @@
|
||||
(function() {
|
||||
require.config({
|
||||
paths: {
|
||||
'jquery': '../bower_components/jquery/jquery',
|
||||
'jquery-ui': '../bower_components/jquery-ui/ui/jquery-ui',
|
||||
'data-tables': '../bower_components/datatables/media/js/jquery.dataTables',
|
||||
'blockUI': '../bower_components/blockui/jquery.blockUI',
|
||||
'angular': '../bower_components/angular/angular',
|
||||
'angular-resource': '../bower_components/angular-resource/angular-resource',
|
||||
'angular-translate': '../bower_components/angular-translate/angular-translate',
|
||||
'angular-translate-loader-static-files': '../bower_components/angular-translate-loader-static-files/angular-translate-loader-static-files',
|
||||
'angular-mocks': '../bower_components/angular-mocks/angular-mocks',
|
||||
'angularui': '../bower_components/angular-bootstrap/ui-bootstrap',
|
||||
'angularuitpls': '../bower_components/angular-bootstrap/ui-bootstrap-tpls',
|
||||
'underscore': '../bower_components/underscore/underscore',
|
||||
'webstorage': '../bower_components/angular-webstorage/angular-webstorage',
|
||||
'require-css': '../bower_components/require-css/css',
|
||||
'require-less': '../bower_components/require-less/less',
|
||||
'styles': '../styles',
|
||||
'test': '../../test/functional'
|
||||
},
|
||||
shim: {
|
||||
'angular': { exports: 'angular' },
|
||||
'angular-resource': { deps: ['angular'] },
|
||||
'angular-translate': { deps: ['angular'] },
|
||||
'angular-translate-loader-static-files': {deps: ['angular' , 'angular-translate'] },
|
||||
'angularui': { deps: ['angular'] },
|
||||
'angularuitpls': { deps: ['angular' ,'angularui' ] },
|
||||
'angular-mocks': { deps: ['angular'] },
|
||||
'webstorage': { deps: ['angular'] },
|
||||
'jquery-ui': { deps: ['jquery'] },
|
||||
'mifosX': {
|
||||
deps: [
|
||||
'angular',
|
||||
'angular-resource',
|
||||
'angular-translate',
|
||||
'angular-translate-loader-static-files',
|
||||
'angularui',
|
||||
'angularuitpls',
|
||||
'webstorage',
|
||||
'data-tables',
|
||||
'blockUI',
|
||||
'jquery-ui'
|
||||
],
|
||||
exports: 'mifosX'
|
||||
}
|
||||
},
|
||||
packages: [
|
||||
{
|
||||
name: 'css',
|
||||
location: '../bower_components/require-css',
|
||||
main: 'css'
|
||||
},
|
||||
{
|
||||
name: 'less',
|
||||
location: '../bower_components/require-less',
|
||||
main: 'less'
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
require(['mifosXComponents', 'mifosXStyles'], function() {
|
||||
require(['test/testInitializer'], function(testMode) {
|
||||
if (!testMode) {
|
||||
angular.bootstrap(document, ["MifosX_Application"]);
|
||||
}
|
||||
});
|
||||
});
|
||||
}());
|
||||
74
app/scripts/mifosXComponents.js
Normal file
@ -0,0 +1,74 @@
|
||||
define(['underscore', 'mifosX'], function() {
|
||||
var components = {
|
||||
models: [
|
||||
'LoggedInUser',
|
||||
'roleMap'
|
||||
],
|
||||
controllers: [
|
||||
'main/MainController',
|
||||
'main/LoginFormController',
|
||||
'main/TaskController',
|
||||
'main/SearchController',
|
||||
'loanAccount/ViewClientLoanDetailsController',
|
||||
'client/ClientController',
|
||||
'client/EditClientController',
|
||||
'client/ViewClientController',
|
||||
'client/CreateClientController',
|
||||
'product/LoanProductController',
|
||||
'product/ChargeController',
|
||||
'product/ViewChargeController',
|
||||
'product/SavingProductController',
|
||||
'product/ViewSavingProductController',
|
||||
'product/ViewLoanProductController',
|
||||
'user/UserController',
|
||||
'user/UserFormController',
|
||||
'user/UserSettingController',
|
||||
'user/UserListController',
|
||||
'user/ViewUserController',
|
||||
'organization/RoleController',
|
||||
'organization/OfficesController',
|
||||
'organization/ViewOfficeController',
|
||||
'organization/CreateOfficeController',
|
||||
'organization/CurrencyConfigController',
|
||||
'organization/CreateUserController',
|
||||
'organization/EditUserController',
|
||||
'organization/ViewEmployeeController',
|
||||
'organization/EditEmployeeController',
|
||||
'organization/EmployeeController',
|
||||
'organization/CreateEmployeeController',
|
||||
'organization/ManageFundsController',
|
||||
'accounting/AccFreqPostingController',
|
||||
'accounting/AccCoaController',
|
||||
'accounting/AccCreateGLAccountContoller',
|
||||
'accounting/AccViewGLAccountContoller',
|
||||
'accounting/AccEditGLAccountController',
|
||||
'accounting/ViewTransactionController',
|
||||
'accounting/JournalEntryController',
|
||||
'accounting/SearchTransactionController',
|
||||
'accounting/AccountingClosureController'
|
||||
],
|
||||
filters: [
|
||||
'StatusLookup'
|
||||
],
|
||||
services: [
|
||||
'ResourceFactoryProvider',
|
||||
'HttpServiceProvider',
|
||||
'AuthenticationService',
|
||||
'SessionManager',
|
||||
'Paginator'
|
||||
],
|
||||
directives: [
|
||||
'DataTablesDirective',
|
||||
'OverlayDirective',
|
||||
'DialogDirective'
|
||||
]
|
||||
};
|
||||
|
||||
require(_.reduce(_.keys(components), function(list, group) {
|
||||
return list.concat(_.map(components[group], function(name) { return group + "/" + name; }));
|
||||
}, [
|
||||
'routes',
|
||||
'initialTasks',
|
||||
'webstorage-configuration'
|
||||
]));
|
||||
});
|
||||
@ -5,11 +5,6 @@ define(['underscore'], function() {
|
||||
'bootswatch',
|
||||
'font-awesome.min',
|
||||
'app'
|
||||
// 'skeleton/base',
|
||||
// 'skeleton/skeleton',
|
||||
// 'skeleton/layout',
|
||||
// 'data-tables/css/jquery.dataTables',
|
||||
// 'jquery-ui/redmond/jquery-ui-1.10.3.custom'
|
||||
],
|
||||
less: [
|
||||
'mifosX'
|
||||
148
app/scripts/routes.js
Normal file
@ -0,0 +1,148 @@
|
||||
(function(mifosX) {
|
||||
var defineRoutes = function($routeProvider, $locationProvider) {
|
||||
$routeProvider
|
||||
.when('/', {
|
||||
templateUrl: 'views/start.html'
|
||||
})
|
||||
.when('/login', {
|
||||
templateUrl: 'views/login.html'
|
||||
})
|
||||
.when('/home', {
|
||||
templateUrl: 'views/home.html'
|
||||
})
|
||||
.when('/admin/roles', {
|
||||
templateUrl: 'views/administration/roles.html'
|
||||
})
|
||||
.when('/admin/users', {
|
||||
templateUrl: 'views/administration/users.html'
|
||||
})
|
||||
.when('/clients', {
|
||||
templateUrl: 'views/clients/clients.html'
|
||||
})
|
||||
.when('/createclient', {
|
||||
templateUrl: 'views/clients/createclient.html'
|
||||
})
|
||||
.when('/editclient/:id', {
|
||||
templateUrl : 'views/clients/editclient.html'
|
||||
})
|
||||
.when('/viewclient/:id', {
|
||||
templateUrl: 'views/clients/viewclient.html'
|
||||
})
|
||||
.when('/viewloanaccount/:id', {
|
||||
templateUrl: 'views/clients/viewclientloanaccountdetails.html'
|
||||
})
|
||||
.when('/organization', {
|
||||
templateUrl: 'views/administration/organization.html'
|
||||
})
|
||||
.when('/system', {
|
||||
templateUrl: 'views/administration/system.html'
|
||||
})
|
||||
.when('/loanproducts', {
|
||||
templateUrl: 'views/products/loanproducts.html'
|
||||
})
|
||||
.when('/charges', {
|
||||
templateUrl: 'views/products/charges.html'
|
||||
})
|
||||
.when('/viewcharge/:id', {
|
||||
templateUrl: 'views/products/viewcharge.html'
|
||||
})
|
||||
.when('/savingproducts', {
|
||||
templateUrl: 'views/products/savingproducts.html'
|
||||
})
|
||||
.when('/viewsavingproduct/:id', {
|
||||
templateUrl: 'views/products/viewsavingproduct.html'
|
||||
})
|
||||
.when('/offices', {
|
||||
templateUrl: 'views/organization/offices.html'
|
||||
})
|
||||
.when('/createoffice', {
|
||||
templateUrl: 'views/organization/createoffice.html'
|
||||
})
|
||||
.when('/viewoffice/:id', {
|
||||
templateUrl: 'views/organization/viewoffice.html'
|
||||
})
|
||||
.when('/tasks', {
|
||||
templateUrl: 'views/tasks.html'
|
||||
})
|
||||
.when('/viewcurrconfig', {
|
||||
templateUrl: 'views/organization/currencyconfig.html'
|
||||
})
|
||||
.when('/search/:query', {
|
||||
templateUrl: 'views/search/glresults.html'
|
||||
})
|
||||
.when('/viewloanproduct/:id', {
|
||||
templateUrl: 'views/products/viewloanproduct.html'
|
||||
})
|
||||
.when('/usersetting', {
|
||||
templateUrl: 'views/administration/usersettings.html'
|
||||
})
|
||||
.when('/userslist/', {
|
||||
templateUrl: 'views/administration/userslist.html'
|
||||
})
|
||||
.when('/createuser/', {
|
||||
templateUrl: 'views/administration/createuser.html'
|
||||
})
|
||||
.when('/viewuser/:id', {
|
||||
templateUrl: 'views/administration/viewuser.html'
|
||||
})
|
||||
.when('/edituser/:id', {
|
||||
templateUrl: 'views/administration/edituser.html'
|
||||
})
|
||||
.when('/employees', {
|
||||
templateUrl: 'views/organization/employees.html'
|
||||
})
|
||||
.when('/viewemployee/:id', {
|
||||
templateUrl: 'views/organization/viewemployee.html'
|
||||
})
|
||||
.when('/editemployee/:id', {
|
||||
templateUrl: 'views/organization/editemployee.html'
|
||||
})
|
||||
.when('/createemployee/', {
|
||||
templateUrl: 'views/organization/createemployee.html'
|
||||
})
|
||||
.when('/managefunds/', {
|
||||
templateUrl: 'views/organization/managefunds.html'
|
||||
})
|
||||
.when('/nav/offices', {
|
||||
templateUrl: 'views/navigation/offices.html'
|
||||
})
|
||||
.when('/accounting', {
|
||||
templateUrl: 'views/accounting/accounting.html'
|
||||
})
|
||||
.when('/accounting_coa', {
|
||||
templateUrl: 'views/accounting/accounting_coa.html'
|
||||
})
|
||||
.when('/createglaccount', {
|
||||
templateUrl: 'views/accounting/createglaccounting.html'
|
||||
})
|
||||
.when('/viewglaccount/:id', {
|
||||
templateUrl: 'views/accounting/viewglaccounting.html'
|
||||
})
|
||||
.when('/editglaccount/:id', {
|
||||
templateUrl: 'views/accounting/editglaccounting.html'
|
||||
})
|
||||
.when('/freqposting', {
|
||||
templateUrl: 'views/accounting/freqposting.html'
|
||||
})
|
||||
.when('/viewtransactions/:transactionId', {
|
||||
templateUrl: 'views/accounting/view_transactions.html'
|
||||
})
|
||||
.when('/journalentry', {
|
||||
templateUrl: 'views/accounting/journalentry_posting.html'
|
||||
})
|
||||
.when('/searchtransaction', {
|
||||
templateUrl: 'views/accounting/search_transaction.html'
|
||||
})
|
||||
.when('/accounts_closure', {
|
||||
templateUrl: 'views/accounting/accounts_closure.html'
|
||||
})
|
||||
.when('/closedaccountingDetails/:officeId', {
|
||||
templateUrl: 'views/accounting/view_close_accounting.html'
|
||||
});
|
||||
|
||||
$locationProvider.html5Mode(false);
|
||||
};
|
||||
mifosX.ng.application.config(defineRoutes).run(function($log) {
|
||||
$log.info("Routes definition completed");
|
||||
});
|
||||
}(mifosX || {}));
|
||||
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 894 B After Width: | Height: | Size: 894 B |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |