mirror of
https://github.com/openMF/community-app.git
synced 2026-02-06 13:36:46 +00:00
modals added and navigation classes removed
This commit is contained in:
parent
e8e5b3c3d6
commit
d4e2fe52eb
@ -52,6 +52,8 @@
|
||||
"label.repeatpassword":"Repeat Password",
|
||||
"label.loginname":"Login Name",
|
||||
"label.email":"Email",
|
||||
"label.enable":"Enable",
|
||||
"label.disable":"Disable",
|
||||
|
||||
"# common label headings":"....",
|
||||
"label.firstname":"First name:",
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
(function(module) {
|
||||
mifosX.controllers = _.extend(module, {
|
||||
AccViewGLAccountContoller: function(scope, routeParams , location, resourceFactory, route) {
|
||||
AccViewGLAccountContoller: function(scope, routeParams , location, resourceFactory, route,$modal) {
|
||||
scope.glaccountdata = [];
|
||||
scope.accountOptions = [];
|
||||
|
||||
@ -47,11 +47,22 @@
|
||||
});
|
||||
|
||||
scope.deleteGLAccount = function (){
|
||||
resourceFactory.accountCoaResource.delete({glAccountId: routeParams.id} , {} , function(data) {
|
||||
location.path('/accounting_coa');
|
||||
});
|
||||
$modal.open({
|
||||
templateUrl: 'deleteglacc.html',
|
||||
controller: GlAccDeleteCtrl
|
||||
});
|
||||
};
|
||||
var GlAccDeleteCtrl = function ($scope, $modalInstance) {
|
||||
$scope.delete = function () {
|
||||
resourceFactory.accountCoaResource.delete({glAccountId: routeParams.id} , {} , function(data) {
|
||||
location.path('/accounting_coa');
|
||||
});
|
||||
$modalInstance.close('delete');
|
||||
};
|
||||
$scope.cancel = function () {
|
||||
$modalInstance.dismiss('cancel');
|
||||
};
|
||||
};
|
||||
|
||||
scope.changeState = function (disabled){
|
||||
resourceFactory.accountCoaResource.update({'glAccountId': routeParams.id},{disabled:!disabled},function(data){
|
||||
route.reload();
|
||||
@ -59,7 +70,7 @@
|
||||
};
|
||||
}
|
||||
});
|
||||
mifosX.ng.application.controller('AccViewGLAccountContoller', ['$scope', '$routeParams', '$location', 'ResourceFactory', '$route', mifosX.controllers.AccViewGLAccountContoller]).run(function($log) {
|
||||
mifosX.ng.application.controller('AccViewGLAccountContoller', ['$scope', '$routeParams', '$location', 'ResourceFactory', '$route','$modal', mifosX.controllers.AccViewGLAccountContoller]).run(function($log) {
|
||||
$log.info("AccViewGLAccountContoller initialized");
|
||||
});
|
||||
}(mifosX.controllers || {}));
|
||||
|
||||
@ -1,21 +1,31 @@
|
||||
(function(module) {
|
||||
mifosX.controllers = _.extend(module, {
|
||||
ViewAccRuleController: function(scope, resourceFactory, routeParams, location) {
|
||||
ViewAccRuleController: function(scope, resourceFactory, routeParams, location,$modal) {
|
||||
|
||||
resourceFactory.accountingRulesResource.getById({accountingRuleId:routeParams.id}, function(data){
|
||||
scope.rule = data;
|
||||
});
|
||||
|
||||
scope.deleteRule = function (){
|
||||
resourceFactory.accountingRulesResource.delete({accountingRuleId:routeParams.id}, {}, function(data){
|
||||
location.path('/accounting_rules');
|
||||
});
|
||||
};
|
||||
|
||||
scope.deleteRule = function (){
|
||||
$modal.open({
|
||||
templateUrl: 'deleteaccrule.html',
|
||||
controller: AccRuleDeleteCtrl
|
||||
});
|
||||
};
|
||||
var AccRuleDeleteCtrl = function ($scope, $modalInstance) {
|
||||
$scope.delete = function () {
|
||||
resourceFactory.accountingRulesResource.delete({accountingRuleId:routeParams.id}, {}, function(data){
|
||||
location.path('/accounting_rules');
|
||||
});
|
||||
$modalInstance.close('delete');
|
||||
};
|
||||
$scope.cancel = function () {
|
||||
$modalInstance.dismiss('cancel');
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
});
|
||||
mifosX.ng.application.controller('ViewAccRuleController', ['$scope', 'ResourceFactory', '$routeParams', '$location', mifosX.controllers.ViewAccRuleController]).run(function($log) {
|
||||
mifosX.ng.application.controller('ViewAccRuleController', ['$scope', 'ResourceFactory', '$routeParams', '$location','$modal', mifosX.controllers.ViewAccRuleController]).run(function($log) {
|
||||
$log.info("ViewAccRuleController initialized");
|
||||
});
|
||||
}(mifosX.controllers || {}));
|
||||
@ -1,19 +1,32 @@
|
||||
(function(module) {
|
||||
mifosX.controllers = _.extend(module, {
|
||||
ViewAccountingClosureController: function(scope, resourceFactory, location, routeParams) {
|
||||
ViewAccountingClosureController: function(scope, resourceFactory, location, routeParams,$modal) {
|
||||
scope.accountClosure = {};
|
||||
scope.choice = 0;
|
||||
resourceFactory.accountingClosureResource.getView({accId:routeParams.id}, function(data){
|
||||
scope.accountClosure = data;
|
||||
});
|
||||
scope.deleteClosure = function() {
|
||||
resourceFactory.accountingClosureResource.delete({accId:routeParams.id},{}, function(data){
|
||||
location.path('/accounts_closure');
|
||||
scope.deleteAcc = function () {
|
||||
$modal.open({
|
||||
templateUrl: 'deleteacc.html',
|
||||
controller: AccDeleteCtrl
|
||||
});
|
||||
};
|
||||
var AccDeleteCtrl = function ($scope, $modalInstance) {
|
||||
$scope.delete = function () {
|
||||
resourceFactory.accountingClosureResource.delete({accId:routeParams.id},{}, function(data){
|
||||
location.path('/accounts_closure');
|
||||
});
|
||||
$modalInstance.close('delete');
|
||||
};
|
||||
$scope.cancel = function () {
|
||||
$modalInstance.dismiss('cancel');
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
});
|
||||
mifosX.ng.application.controller('ViewAccountingClosureController', ['$scope', 'ResourceFactory', '$location','$routeParams', mifosX.controllers.ViewAccountingClosureController]).run(function($log) {
|
||||
mifosX.ng.application.controller('ViewAccountingClosureController', ['$scope', 'ResourceFactory', '$location','$routeParams','$modal', mifosX.controllers.ViewAccountingClosureController]).run(function($log) {
|
||||
$log.info("ViewAccountingClosureController initialized");
|
||||
});
|
||||
}(mifosX.controllers || {}));
|
||||
|
||||
@ -2,9 +2,10 @@
|
||||
mifosX.controllers = _.extend(module, {
|
||||
ViewCenterController: function(scope, routeParams , route, location, resourceFactory,$modal) {
|
||||
scope.center = [];
|
||||
|
||||
scope.staffData = {};
|
||||
resourceFactory.centerResource.get({centerId: routeParams.id,associations:'groupMembers,collectionMeetingCalendar'} , function(data) {
|
||||
scope.center = data;
|
||||
scope.staffData.staffId = data.staffId;
|
||||
scope.meeting = data.collectionMeetingCalendar;
|
||||
});
|
||||
resourceFactory.runReportsResource.get({reportSource: 'GroupSummaryCounts',genericResultSet: 'false',R_groupId: routeParams.id} , function(data) {
|
||||
@ -19,16 +20,16 @@
|
||||
scope.deleteCenter = function () {
|
||||
$modal.open({
|
||||
templateUrl: 'delete.html',
|
||||
controller: ModalInstanceDeleteCtrl
|
||||
controller: CenterDeleteCtrl
|
||||
});
|
||||
};
|
||||
scope.unassignStaffCenter = function () {
|
||||
$modal.open({
|
||||
templateUrl: 'unassignstaff.html',
|
||||
controller: ModalInstanceUnassignCtrl
|
||||
controller: CenterUnassignCtrl
|
||||
});
|
||||
};
|
||||
var ModalInstanceDeleteCtrl = function ($scope, $modalInstance) {
|
||||
var CenterDeleteCtrl = function ($scope, $modalInstance) {
|
||||
$scope.delete = function () {
|
||||
resourceFactory.centerResource.delete({centerId: routeParams.id}, {}, function(data) {
|
||||
location.path('/centers');
|
||||
@ -40,11 +41,9 @@
|
||||
$modalInstance.dismiss('cancel');
|
||||
};
|
||||
};
|
||||
var ModalInstanceUnassignCtrl = function ($scope, $modalInstance) {
|
||||
$scope.unassign = function (staffId) {
|
||||
var staffData = new Object();
|
||||
staffData.staffId = staffId;
|
||||
resourceFactory.groupResource.save({centerId: routeParams.id,anotherresource: 'unassignStaff'}, staffData, function(data) {
|
||||
var CenterUnassignCtrl = function ($scope, $modalInstance) {
|
||||
$scope.unassign = function () {
|
||||
resourceFactory.groupResource.save({centerId: routeParams.id,command: 'unassignStaff'}, scope.staffData, function(data) {
|
||||
route.reload();
|
||||
});
|
||||
$modalInstance.close('activate');
|
||||
|
||||
@ -91,11 +91,6 @@
|
||||
location.path('/viewclient/' + data.clientId);
|
||||
});
|
||||
}
|
||||
if (scope.action == "delete") {
|
||||
resourceFactory.clientResource.delete({clientId: routeParams.id}, {}, function(data){
|
||||
location.path('/clients');
|
||||
});
|
||||
}
|
||||
if (scope.action == "acceptclienttransfer") {
|
||||
delete this.formData.locale;
|
||||
delete this.formData.dateFormat;
|
||||
|
||||
@ -1,14 +1,14 @@
|
||||
(function(module) {
|
||||
mifosX.controllers = _.extend(module, {
|
||||
ViewClientController: function(scope, routeParams , route, location, resourceFactory, http) {
|
||||
ViewClientController: function(scope, routeParams , route, location, resourceFactory, http,$modal) {
|
||||
scope.client = [];
|
||||
scope.identitydocuments = [];
|
||||
scope.buttons = [];
|
||||
scope.clientdocuments = [];
|
||||
|
||||
scope.staffData = {};
|
||||
resourceFactory.clientResource.get({clientId: routeParams.id} , function(data) {
|
||||
scope.client = data;
|
||||
|
||||
scope.staffData.staffId = data.staffId;
|
||||
if (data.imagePresent) {
|
||||
http({
|
||||
method:'GET',
|
||||
@ -29,12 +29,6 @@
|
||||
subhref:"activate",
|
||||
icon :"icon-ok-sign"
|
||||
},
|
||||
{
|
||||
name:"button.delete",
|
||||
href:"#/client",
|
||||
subhref:"delete",
|
||||
icon :"icon-warning-sign"
|
||||
},
|
||||
{
|
||||
name:"button.close",
|
||||
href:"#/client",
|
||||
@ -105,13 +99,9 @@
|
||||
|
||||
if (data.status.value == "Pending" || data.status.value == "Active"){
|
||||
if(data.staffId) {
|
||||
scope.buttons.push({
|
||||
name:"button.unassignstaff",
|
||||
href:"#/client",
|
||||
subhref:"unassignstaff?staffId="+data.staffId,
|
||||
icon :"icon-user"
|
||||
});
|
||||
} else {
|
||||
|
||||
}
|
||||
else {
|
||||
scope.buttons.push({
|
||||
name:"button.assignstaff",
|
||||
href:"#/client",
|
||||
@ -125,7 +115,40 @@
|
||||
scope.client.ClientSummary = data[0];
|
||||
});
|
||||
});
|
||||
|
||||
scope.deleteClient = function () {
|
||||
$modal.open({
|
||||
templateUrl: 'deleteClient.html',
|
||||
controller: ClientDeleteCtrl
|
||||
});
|
||||
};
|
||||
scope.unassignStaffCenter = function () {
|
||||
$modal.open({
|
||||
templateUrl: 'clientunassignstaff.html',
|
||||
controller: ClientUnassignCtrl
|
||||
});
|
||||
};
|
||||
var ClientDeleteCtrl = function ($scope, $modalInstance) {
|
||||
$scope.delete = function () {
|
||||
resourceFactory.clientResource.delete({clientId: routeParams.id}, {}, function(data){
|
||||
location.path('/clients');
|
||||
});
|
||||
$modalInstance.close('delete');
|
||||
};
|
||||
$scope.cancel = function () {
|
||||
$modalInstance.dismiss('cancel');
|
||||
};
|
||||
};
|
||||
var ClientUnassignCtrl = function ($scope, $modalInstance) {
|
||||
$scope.unassign = function () {
|
||||
resourceFactory.clientResource.save({clientId: routeParams.id, command : 'unassignstaff'}, scope.staffData,function(data){
|
||||
route.reload();
|
||||
});
|
||||
$modalInstance.close('unassign');
|
||||
};
|
||||
$scope.cancel = function () {
|
||||
$modalInstance.dismiss('cancel');
|
||||
};
|
||||
};
|
||||
resourceFactory.clientAccountResource.get({clientId: routeParams.id} , function(data) {
|
||||
scope.clientAccounts = data;
|
||||
});
|
||||
@ -345,7 +368,7 @@
|
||||
};
|
||||
}
|
||||
});
|
||||
mifosX.ng.application.controller('ViewClientController', ['$scope', '$routeParams', '$route', '$location', 'ResourceFactory', '$http', mifosX.controllers.ViewClientController]).run(function($log) {
|
||||
mifosX.ng.application.controller('ViewClientController', ['$scope', '$routeParams', '$route', '$location', 'ResourceFactory', '$http','$modal', mifosX.controllers.ViewClientController]).run(function($log) {
|
||||
$log.info("ViewClientController initialized");
|
||||
});
|
||||
}(mifosX.controllers || {}));
|
||||
|
||||
@ -1,12 +1,13 @@
|
||||
(function(module) {
|
||||
mifosX.controllers = _.extend(module, {
|
||||
ViewGroupController: function(scope, routeParams , route, location, resourceFactory,dateFilter) {
|
||||
ViewGroupController: function(scope, routeParams , route, location, resourceFactory,dateFilter,$modal) {
|
||||
scope.group = [];
|
||||
scope.template = [];
|
||||
scope.choice = 0;
|
||||
|
||||
scope.staffData = {};
|
||||
resourceFactory.groupResource.get({groupId: routeParams.id,associations:'all'} , function(data) {
|
||||
scope.group = data;
|
||||
scope.group = data;
|
||||
scope.staffData.staffId = data.staffId;
|
||||
});
|
||||
resourceFactory.runReportsResource.get({reportSource: 'GroupSummaryCounts',genericResultSet: 'false',R_groupId: routeParams.id} , function(data) {
|
||||
scope.summary = data[0];
|
||||
@ -21,9 +22,7 @@
|
||||
scope.choice = 3;
|
||||
} ;
|
||||
scope.delete = function(id){
|
||||
resourceFactory.groupResource.delete({groupId: routeParams.id}, {}, function(data) {
|
||||
location.path('/groups');
|
||||
});
|
||||
|
||||
};
|
||||
scope.delrole = function(id){
|
||||
resourceFactory.groupResource.save({groupId: routeParams.id,command: 'unassignRole',roleId:id}, {}, function(data) {
|
||||
@ -32,28 +31,45 @@
|
||||
});
|
||||
});
|
||||
};
|
||||
scope.unassignStaffpop = function()
|
||||
{
|
||||
scope.choice = 4;
|
||||
scope.deleteGroup = function () {
|
||||
$modal.open({
|
||||
templateUrl: 'deletegroup.html',
|
||||
controller: GroupDeleteCtrl
|
||||
});
|
||||
};
|
||||
scope.unassignStaff = function(id){
|
||||
var staffData = new Object();
|
||||
staffData.staffId = id;
|
||||
resourceFactory.groupResource.save({groupId: routeParams.id,command: 'unassignStaff'}, staffData, function(data) {
|
||||
resourceFactory.groupResource.get({groupId: routeParams.id}, function(data){
|
||||
scope.unassignStaffGroup = function () {
|
||||
$modal.open({
|
||||
templateUrl: 'groupunassignstaff.html',
|
||||
controller: GroupUnassignCtrl
|
||||
});
|
||||
};
|
||||
var GroupUnassignCtrl = function ($scope, $modalInstance) {
|
||||
$scope.unassign = function () {
|
||||
resourceFactory.groupResource.save({groupId: routeParams.id, command : 'unassignstaff'}, scope.staffData,function(data){
|
||||
route.reload();
|
||||
});
|
||||
});
|
||||
$modalInstance.close('unassign');
|
||||
};
|
||||
$scope.cancel = function () {
|
||||
$modalInstance.dismiss('cancel');
|
||||
};
|
||||
};
|
||||
var GroupDeleteCtrl = function ($scope, $modalInstance) {
|
||||
$scope.delete = function () {
|
||||
resourceFactory.groupResource.delete({groupId: routeParams.id}, {}, function(data) {
|
||||
location.path('/groups');
|
||||
});
|
||||
$modalInstance.close('delete');
|
||||
};
|
||||
$scope.cancel = function () {
|
||||
$modalInstance.dismiss('cancel');
|
||||
};
|
||||
};
|
||||
scope.cancel = function(id){
|
||||
resourceFactory.groupResource.get({groupId: id}, function(data){
|
||||
route.reload();
|
||||
});
|
||||
};
|
||||
scope.cancelDelete = function(){
|
||||
scope.choice = 0;
|
||||
};
|
||||
|
||||
scope.saveNote = function() {
|
||||
resourceFactory.groupResource.save({groupId: routeParams.id, anotherresource: 'notes'}, this.formData,function(data){
|
||||
var today = new Date();
|
||||
@ -96,7 +112,7 @@
|
||||
|
||||
}
|
||||
});
|
||||
mifosX.ng.application.controller('ViewGroupController', ['$scope', '$routeParams', '$route', '$location', 'ResourceFactory','dateFilter', mifosX.controllers.ViewGroupController]).run(function($log) {
|
||||
mifosX.ng.application.controller('ViewGroupController', ['$scope', '$routeParams', '$route', '$location', 'ResourceFactory','dateFilter','$modal', mifosX.controllers.ViewGroupController]).run(function($log) {
|
||||
$log.info("ViewGroupController initialized");
|
||||
});
|
||||
}(mifosX.controllers || {}));
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
(function(module) {
|
||||
mifosX.controllers = _.extend(module, {
|
||||
ViewLoanChargeController: function(scope, resourceFactory, routeParams, location) {
|
||||
ViewLoanChargeController: function(scope, resourceFactory, routeParams, location,$modal) {
|
||||
|
||||
scope.loanId =routeParams.loanId;
|
||||
scope.chargeId =routeParams.id;
|
||||
@ -13,11 +13,22 @@
|
||||
resourceFactory.loanResource.get({ resourceType:'charges', loanId:scope.loanId, resourceId:scope.chargeId}, function(data) {
|
||||
scope.charge = data;
|
||||
});
|
||||
|
||||
scope.deleteCharge = function () {
|
||||
resourceFactory.loanResource.delete({ resourceType:'charges', loanId:scope.loanId, resourceId:scope.chargeId}, {}, function(data) {
|
||||
location.path('/viewloanaccount/'+scope.loanId);
|
||||
});
|
||||
$modal.open({
|
||||
templateUrl: 'deletecharge.html',
|
||||
controller: ChargeDeleteCtrl
|
||||
});
|
||||
};
|
||||
var ChargeDeleteCtrl = function ($scope, $modalInstance) {
|
||||
$scope.delete = function () {
|
||||
resourceFactory.loanResource.delete({ resourceType:'charges', loanId:scope.loanId, resourceId:scope.chargeId}, {}, function(data) {
|
||||
location.path('/viewloanaccount/'+scope.loanId);
|
||||
});
|
||||
$modalInstance.close('delete');
|
||||
};
|
||||
$scope.cancel = function () {
|
||||
$modalInstance.dismiss('cancel');
|
||||
};
|
||||
};
|
||||
scope.waiveCharge = function () {
|
||||
resourceFactory.loanResource.save({ resourceType:'charges', loanId:scope.loanId, resourceId:scope.chargeId}, {}, function(data) {
|
||||
@ -27,7 +38,7 @@
|
||||
|
||||
}
|
||||
});
|
||||
mifosX.ng.application.controller('ViewLoanChargeController', ['$scope', 'ResourceFactory', '$routeParams', '$location', mifosX.controllers.ViewLoanChargeController]).run(function($log) {
|
||||
mifosX.ng.application.controller('ViewLoanChargeController', ['$scope', 'ResourceFactory', '$routeParams', '$location','$modal', mifosX.controllers.ViewLoanChargeController]).run(function($log) {
|
||||
$log.info("ViewLoanChargeController initialized");
|
||||
});
|
||||
}(mifosX.controllers || {}));
|
||||
|
||||
@ -1,21 +1,32 @@
|
||||
(function(module) {
|
||||
mifosX.controllers = _.extend(module, {
|
||||
ViewLoanCollateralController: function(scope, resourceFactory, routeParams, location) {
|
||||
ViewLoanCollateralController: function(scope, resourceFactory, routeParams, location,$modal) {
|
||||
|
||||
scope.loanId = routeParams.loanId;
|
||||
scope.collateralId = routeParams.id;
|
||||
resourceFactory.loanResource.get({ resourceType:'collaterals', loanId:scope.loanId, resourceId:scope.collateralId}, function(data) {
|
||||
scope.collateral = data;
|
||||
});
|
||||
|
||||
scope.deleteCollateral = function () {
|
||||
resourceFactory.loanResource.delete({ resourceType:'collaterals', loanId:scope.loanId, resourceId:scope.collateralId}, {}, function(data) {
|
||||
location.path('/viewloanaccount/'+scope.loanId);
|
||||
});
|
||||
$modal.open({
|
||||
templateUrl: 'deletecollateral.html',
|
||||
controller: CollateralDeleteCtrl
|
||||
});
|
||||
};
|
||||
var CollateralDeleteCtrl = function ($scope, $modalInstance) {
|
||||
$scope.delete = function () {
|
||||
resourceFactory.loanResource.delete({ resourceType:'collaterals', loanId:scope.loanId, resourceId:scope.collateralId}, {}, function(data) {
|
||||
location.path('/viewloanaccount/'+scope.loanId);
|
||||
});
|
||||
$modalInstance.close('delete');
|
||||
};
|
||||
$scope.cancel = function () {
|
||||
$modalInstance.dismiss('cancel');
|
||||
};
|
||||
};
|
||||
}
|
||||
});
|
||||
mifosX.ng.application.controller('ViewLoanCollateralController', ['$scope', 'ResourceFactory', '$routeParams', '$location', mifosX.controllers.ViewLoanCollateralController]).run(function($log) {
|
||||
mifosX.ng.application.controller('ViewLoanCollateralController', ['$scope', 'ResourceFactory', '$routeParams', '$location','$modal', mifosX.controllers.ViewLoanCollateralController]).run(function($log) {
|
||||
$log.info("ViewLoanCollateralController initialized");
|
||||
});
|
||||
}(mifosX.controllers || {}));
|
||||
|
||||
@ -23,7 +23,7 @@
|
||||
{"name" : "Español", "code":"es"},
|
||||
{"name" : "Português", "code":"pt"},
|
||||
{"name" : "中文", "code":"zh"},
|
||||
{"name" : "हिंदी", "code":"hn"} ,
|
||||
{"name" : "हिंदी", "code":"hn"}
|
||||
];
|
||||
|
||||
scope.optlang = scope.langs[0];
|
||||
|
||||
@ -1,26 +1,33 @@
|
||||
(function(module) {
|
||||
mifosX.controllers = _.extend(module, {
|
||||
ViewChargeController: function(scope, routeParams , resourceFactory, location) {
|
||||
ViewChargeController: function(scope, routeParams , resourceFactory, location,$modal) {
|
||||
scope.charge = [];
|
||||
scope.choice = 0;
|
||||
resourceFactory.chargeResource.get({chargeId: routeParams.id} , function(data) {
|
||||
scope.charge = data;
|
||||
});
|
||||
|
||||
scope.deletepop = function(){
|
||||
scope.choice = 1;
|
||||
};
|
||||
scope.cancel = function(){
|
||||
scope.choice = 0;
|
||||
};
|
||||
scope.deleteCharge = function(){
|
||||
resourceFactory.chargeResource.delete({chargeId: routeParams.id} , {}, function(data) {
|
||||
location.path('/charges');
|
||||
scope.deleteCharge = function () {
|
||||
$modal.open({
|
||||
templateUrl: 'deletech.html',
|
||||
controller: ChDeleteCtrl
|
||||
});
|
||||
}
|
||||
};
|
||||
var ChDeleteCtrl = function ($scope, $modalInstance) {
|
||||
$scope.delete = function () {
|
||||
resourceFactory.chargeResource.delete({chargeId: routeParams.id} , {}, function(data) {
|
||||
location.path('/charges');
|
||||
});
|
||||
$modalInstance.close('delete');
|
||||
};
|
||||
$scope.cancel = function () {
|
||||
$modalInstance.dismiss('cancel');
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
});
|
||||
mifosX.ng.application.controller('ViewChargeController', ['$scope', '$routeParams','ResourceFactory', '$location', mifosX.controllers.ViewChargeController]).run(function($log) {
|
||||
mifosX.ng.application.controller('ViewChargeController', ['$scope', '$routeParams','ResourceFactory', '$location','$modal', mifosX.controllers.ViewChargeController]).run(function($log) {
|
||||
$log.info("ViewChargeController initialized");
|
||||
});
|
||||
}(mifosX.controllers || {}));
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
(function(module) {
|
||||
mifosX.controllers = _.extend(module, {
|
||||
ViewProductMixController: function(scope, resourceFactory,routeParams,location) {
|
||||
ViewProductMixController: function(scope, resourceFactory,routeParams,location,$modal) {
|
||||
scope.productmix = [];
|
||||
scope.choice = 0;
|
||||
scope.allowed = [];
|
||||
@ -11,17 +11,23 @@
|
||||
scope.restrictedProducts = data.restrictedProducts;
|
||||
});
|
||||
|
||||
scope.deleteproductmixpop = function(){
|
||||
scope.choice = 1;
|
||||
};
|
||||
scope.cancelDelete = function() {
|
||||
scope.choice = 0;
|
||||
};
|
||||
scope.delete = function(){
|
||||
resourceFactory.loanProductResource.delete({loanProductId:routeParams.id,resourceType:'productmix'},{},function(data) {
|
||||
location.path('/productmix');
|
||||
scope.deleteProductmix = function () {
|
||||
$modal.open({
|
||||
templateUrl: 'deleteproductmix.html',
|
||||
controller: ProductmixDeleteCtrl
|
||||
});
|
||||
};
|
||||
var ProductmixDeleteCtrl = function ($scope, $modalInstance) {
|
||||
$scope.delete = function () {
|
||||
resourceFactory.loanProductResource.delete({loanProductId:routeParams.id,resourceType:'productmix'},{},function(data) {
|
||||
location.path('/productmix');
|
||||
});
|
||||
$modalInstance.close('delete');
|
||||
};
|
||||
$scope.cancel = function () {
|
||||
$modalInstance.dismiss('cancel');
|
||||
};
|
||||
};
|
||||
scope.restrict = function(){
|
||||
for(var i in this.allowed)
|
||||
{
|
||||
@ -69,7 +75,7 @@
|
||||
|
||||
}
|
||||
});
|
||||
mifosX.ng.application.controller('ViewProductMixController', ['$scope', 'ResourceFactory','$routeParams','$location', mifosX.controllers.ViewProductMixController]).run(function($log) {
|
||||
mifosX.ng.application.controller('ViewProductMixController', ['$scope', 'ResourceFactory','$routeParams','$location','$modal', mifosX.controllers.ViewProductMixController]).run(function($log) {
|
||||
$log.info("ViewProductMixController initialized");
|
||||
});
|
||||
}(mifosX.controllers || {}));
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
(function(module) {
|
||||
mifosX.controllers = _.extend(module, {
|
||||
DataTableEntryController: function(scope, location, routeParams, route, resourceFactory) {
|
||||
DataTableEntryController: function(scope, location, routeParams, route, resourceFactory,$modal) {
|
||||
|
||||
scope.tableName = routeParams.tableName;
|
||||
scope.entityId = routeParams.entityId;
|
||||
@ -50,28 +50,39 @@
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
scope.deleteDatatableEntry = function () {
|
||||
resourceFactory.DataTablesResource.delete(reqparams, {}, function(data){
|
||||
var destination = "";
|
||||
if ( data.loanId) {
|
||||
destination = '/viewloanaccount/'+data.loanId;
|
||||
} else if ( data.savingsId) {
|
||||
destination = '/viewsavingaccount/' + data.savingsId;
|
||||
} else if ( data.clientId) {
|
||||
destination = '/viewclient/'+data.clientId;
|
||||
} else if ( data.groupId) {
|
||||
if (scope.isCenter) {
|
||||
destination = '/viewcenter/'+data.groupId;
|
||||
} else {
|
||||
destination = '/viewgroup/'+data.groupId;
|
||||
}
|
||||
} else if ( data.officeId) {
|
||||
destination = '/viewoffice/'+data.officeId;
|
||||
}
|
||||
location.path(destination);
|
||||
});
|
||||
};
|
||||
scope.deleteDatatableEntry = function (){
|
||||
$modal.open({
|
||||
templateUrl: 'deletedatatable.html',
|
||||
controller: DatatableDeleteCtrl
|
||||
});
|
||||
};
|
||||
var DatatableDeleteCtrl = function ($scope, $modalInstance) {
|
||||
$scope.delete = function () {
|
||||
resourceFactory.DataTablesResource.delete(reqparams, {}, function(data){
|
||||
var destination = "";
|
||||
if ( data.loanId) {
|
||||
destination = '/viewloanaccount/'+data.loanId;
|
||||
} else if ( data.savingsId) {
|
||||
destination = '/viewsavingaccount/' + data.savingsId;
|
||||
} else if ( data.clientId) {
|
||||
destination = '/viewclient/'+data.clientId;
|
||||
} else if ( data.groupId) {
|
||||
if (scope.isCenter) {
|
||||
destination = '/viewcenter/'+data.groupId;
|
||||
} else {
|
||||
destination = '/viewgroup/'+data.groupId;
|
||||
}
|
||||
} else if ( data.officeId) {
|
||||
destination = '/viewoffice/'+data.officeId;
|
||||
}
|
||||
location.path(destination);
|
||||
});
|
||||
$modalInstance.close('delete');
|
||||
};
|
||||
$scope.cancel = function () {
|
||||
$modalInstance.dismiss('cancel');
|
||||
};
|
||||
};
|
||||
|
||||
scope.cancel = function () {
|
||||
route.reload();
|
||||
@ -103,7 +114,7 @@
|
||||
|
||||
}
|
||||
});
|
||||
mifosX.ng.application.controller('DataTableEntryController', ['$scope', '$location', '$routeParams', '$route', 'ResourceFactory', mifosX.controllers.DataTableEntryController]).run(function($log) {
|
||||
mifosX.ng.application.controller('DataTableEntryController', ['$scope', '$location', '$routeParams', '$route', 'ResourceFactory','$modal', mifosX.controllers.DataTableEntryController]).run(function($log) {
|
||||
$log.info("DataTableEntryController initialized");
|
||||
});
|
||||
}(mifosX.controllers || {}));
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
(function(module) {
|
||||
mifosX.controllers = _.extend(module, {
|
||||
ViewCodeController: function(scope, routeParams , resourceFactory, location ) {
|
||||
ViewCodeController: function(scope, routeParams , resourceFactory, location,$modal ) {
|
||||
scope.codevalues = [];
|
||||
resourceFactory.codeResources.get({codeId: routeParams.id} , function(data) {
|
||||
scope.code = data;
|
||||
@ -8,15 +8,27 @@
|
||||
resourceFactory.codeValueResource.getAllCodeValues({codeId: routeParams.id} , function(data) {
|
||||
scope.codevalues = data;
|
||||
});
|
||||
scope.delcode = function(){
|
||||
resourceFactory.codeResources.remove({codeId: routeParams.id},this.code,function(data){
|
||||
location.path('/codes');
|
||||
|
||||
scope.delCode = function (){
|
||||
$modal.open({
|
||||
templateUrl: 'deletecode.html',
|
||||
controller: CodeDeleteCtrl
|
||||
});
|
||||
}
|
||||
};
|
||||
var CodeDeleteCtrl = function ($scope, $modalInstance) {
|
||||
$scope.delete = function () {
|
||||
resourceFactory.codeResources.delete({codeId: routeParams.id},{},function(data){
|
||||
location.path('/codes');
|
||||
});
|
||||
$modalInstance.close('delete');
|
||||
};
|
||||
$scope.cancel = function () {
|
||||
$modalInstance.dismiss('cancel');
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
});
|
||||
mifosX.ng.application.controller('ViewCodeController', ['$scope', '$routeParams','ResourceFactory','$location', mifosX.controllers.ViewCodeController]).run(function($log) {
|
||||
mifosX.ng.application.controller('ViewCodeController', ['$scope', '$routeParams','ResourceFactory','$location','$modal', mifosX.controllers.ViewCodeController]).run(function($log) {
|
||||
$log.info("ViewCodeController initialized");
|
||||
});
|
||||
}(mifosX.controllers || {}));
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
(function(module) {
|
||||
mifosX.controllers = _.extend(module, {
|
||||
ViewDataTableController: function(scope, routeParams, resourceFactory, location) {
|
||||
ViewDataTableController: function(scope, routeParams, resourceFactory, location,$modal) {
|
||||
|
||||
resourceFactory.DataTablesResource.getTableDetails({datatablename: routeParams.tableName} , function(data) {
|
||||
|
||||
@ -23,15 +23,26 @@
|
||||
}
|
||||
scope.datatable = data;
|
||||
});
|
||||
|
||||
scope.deleteTable = function () {
|
||||
resourceFactory.DataTablesResource.delete({datatablename: routeParams.tableName}, {}, function(data){
|
||||
location.path('/datatables');
|
||||
});
|
||||
}
|
||||
scope.deleteTable = function (){
|
||||
$modal.open({
|
||||
templateUrl: 'deletetable.html',
|
||||
controller: TableDeleteCtrl
|
||||
});
|
||||
};
|
||||
var TableDeleteCtrl = function ($scope, $modalInstance) {
|
||||
$scope.delete = function () {
|
||||
resourceFactory.DataTablesResource.delete({datatablename: routeParams.tableName}, {}, function(data){
|
||||
location.path('/datatables');
|
||||
});
|
||||
$modalInstance.close('delete');
|
||||
};
|
||||
$scope.cancel = function () {
|
||||
$modalInstance.dismiss('cancel');
|
||||
};
|
||||
};
|
||||
}
|
||||
});
|
||||
mifosX.ng.application.controller('ViewDataTableController', ['$scope', '$routeParams','ResourceFactory', '$location', mifosX.controllers.ViewDataTableController]).run(function($log) {
|
||||
mifosX.ng.application.controller('ViewDataTableController', ['$scope', '$routeParams','ResourceFactory', '$location','$modal', mifosX.controllers.ViewDataTableController]).run(function($log) {
|
||||
$log.info("ViewDataTableController initialized");
|
||||
});
|
||||
}(mifosX.controllers || {}));
|
||||
|
||||
@ -1,19 +1,30 @@
|
||||
(function(module) {
|
||||
mifosX.controllers = _.extend(module, {
|
||||
ViewReportController: function(scope, routeParams , resourceFactory,location) {
|
||||
ViewReportController: function(scope, routeParams , resourceFactory,location,$modal) {
|
||||
resourceFactory.reportsResource.getReportDetails({id: routeParams.id} , function(data) {
|
||||
scope.report = data;
|
||||
scope.noncoreReport = data.coreReport==true ? false : true;
|
||||
});
|
||||
|
||||
scope.deletereport = function (){
|
||||
resourceFactory.reportsResource.delete({id: routeParams.id} , {} , function(data) {
|
||||
location.path('/reports');
|
||||
});
|
||||
};
|
||||
scope.deletereport = function (){
|
||||
$modal.open({
|
||||
templateUrl: 'deletenoncorereport.html',
|
||||
controller: NoncoreReportDeleteCtrl
|
||||
});
|
||||
};
|
||||
var NoncoreReportDeleteCtrl = function ($scope, $modalInstance) {
|
||||
$scope.delete = function () {
|
||||
resourceFactory.reportsResource.delete({id: routeParams.id} , {} , function(data) {
|
||||
location.path('/reports');
|
||||
});
|
||||
$modalInstance.close('delete');
|
||||
};
|
||||
$scope.cancel = function () {
|
||||
$modalInstance.dismiss('cancel');
|
||||
};
|
||||
};
|
||||
}
|
||||
});
|
||||
mifosX.ng.application.controller('ViewReportController', ['$scope', '$routeParams','ResourceFactory', '$location', mifosX.controllers.ViewReportController]).run(function($log) {
|
||||
mifosX.ng.application.controller('ViewReportController', ['$scope', '$routeParams','ResourceFactory', '$location','$modal', mifosX.controllers.ViewReportController]).run(function($log) {
|
||||
$log.info("ViewReportController initialized");
|
||||
});
|
||||
}(mifosX.controllers || {}));
|
||||
|
||||
@ -1,21 +1,32 @@
|
||||
(function(module) {
|
||||
mifosX.controllers = _.extend(module, {
|
||||
ViewTemplateController: function(scope, routeParams , resourceFactory, location) {
|
||||
ViewTemplateController: function(scope, routeParams , resourceFactory, location,$modal) {
|
||||
resourceFactory.templateResource.getTemplateDetails({templateId: routeParams.id} , function(data) {
|
||||
scope.template = data;
|
||||
scope.text = data.text;
|
||||
});
|
||||
|
||||
scope.deleteTemplate = function (){
|
||||
resourceFactory.templateResource.delete({templateId: routeParams.id}, {}, function(data) {
|
||||
location.path('/templates');
|
||||
// added dummy request param because Content-Type header gets removed
|
||||
// if the request does not contain any data (a request body)
|
||||
});
|
||||
$modal.open({
|
||||
templateUrl: 'deletetemplate.html',
|
||||
controller: TemplateDeleteCtrl
|
||||
});
|
||||
};
|
||||
var TemplateDeleteCtrl = function ($scope, $modalInstance) {
|
||||
$scope.delete = function () {
|
||||
resourceFactory.templateResource.delete({templateId: routeParams.id}, {}, function(data) {
|
||||
location.path('/templates');
|
||||
// added dummy request param because Content-Type header gets removed
|
||||
// if the request does not contain any data (a request body)
|
||||
});
|
||||
$modalInstance.close('delete');
|
||||
};
|
||||
$scope.cancel = function () {
|
||||
$modalInstance.dismiss('cancel');
|
||||
};
|
||||
};
|
||||
}
|
||||
});
|
||||
mifosX.ng.application.controller('ViewTemplateController', ['$scope', '$routeParams','ResourceFactory', '$location', mifosX.controllers.ViewTemplateController]).run(function($log) {
|
||||
mifosX.ng.application.controller('ViewTemplateController', ['$scope', '$routeParams','ResourceFactory', '$location','$modal', mifosX.controllers.ViewTemplateController]).run(function($log) {
|
||||
$log.info("ViewTemplateController initialized");
|
||||
});
|
||||
}(mifosX.controllers || {}));
|
||||
|
||||
@ -8,7 +8,8 @@
|
||||
{"name" : "French", "code":"fr"},
|
||||
{"name" : "Spanish", "code":"es"},
|
||||
{"name" : "Portuguese", "code":"pt"},
|
||||
{"name" : "Chinese", "code":"zh"},
|
||||
{"name" : "Chinese", "code":"zh"},
|
||||
{"name" : "हिंदी", "code":"hn"}
|
||||
];
|
||||
|
||||
scope.optlang = scope.langs[0];
|
||||
|
||||
@ -11,6 +11,12 @@
|
||||
controller: ModalInstanceCtrl
|
||||
});
|
||||
};
|
||||
scope.deleteuser = function (){
|
||||
$modal.open({
|
||||
templateUrl: 'deleteuser.html',
|
||||
controller: UserDeleteCtrl
|
||||
});
|
||||
};
|
||||
var ModalInstanceCtrl = function ($scope, $modalInstance) {
|
||||
$scope.save = function (staffId) {
|
||||
resourceFactory.userListResource.update({'userId': routeParams.id},this.formData,function(data){
|
||||
@ -22,13 +28,21 @@
|
||||
$modalInstance.dismiss('cancel');
|
||||
};
|
||||
};
|
||||
scope.deleteuser = function (){
|
||||
resourceFactory.userListResource.delete({userId: routeParams.id} , {} , function(data) {
|
||||
location.path('/users');
|
||||
// added dummy request param because Content-Type header gets removed
|
||||
// if the request does not contain any data (a request body)
|
||||
});
|
||||
|
||||
var UserDeleteCtrl = function ($scope, $modalInstance) {
|
||||
$scope.delete = function () {
|
||||
resourceFactory.userListResource.delete({userId: routeParams.id} , {} , function(data) {
|
||||
location.path('/users');
|
||||
// added dummy request param because Content-Type header gets removed
|
||||
// if the request does not contain any data (a request body)
|
||||
});
|
||||
$modalInstance.close('delete');
|
||||
};
|
||||
$scope.cancel = function () {
|
||||
$modalInstance.dismiss('cancel');
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
});
|
||||
mifosX.ng.application.controller('ViewUserController', ['$scope', '$routeParams','$route', '$location', 'ResourceFactory','$modal', mifosX.controllers.ViewUserController]).run(function($log) {
|
||||
|
||||
@ -677,11 +677,7 @@ div[data-tree-model] li .selected {
|
||||
|
||||
.collapse-header-main {
|
||||
color: black;
|
||||
background-color: #F5F5F5;
|
||||
background-image: linear-gradient(to bottom, #FFFFFF, #E6E6E6);
|
||||
background-repeat: repeat-x;
|
||||
border-color: #CCCCCC #CCCCCC #B3B3B3;
|
||||
border-bottom: 1px solid #DDDDDD;
|
||||
background-color: #DFDFDF;
|
||||
padding: 10px 15px;
|
||||
width: 270px;
|
||||
margin-bottom: -3px;
|
||||
@ -690,11 +686,7 @@ div[data-tree-model] li .selected {
|
||||
|
||||
.collapse-header {
|
||||
color: #000000;
|
||||
background-color: #F5F5F5;
|
||||
background-image: linear-gradient(to bottom, #FFFFFF, #E6E6E6);
|
||||
background-repeat: repeat-x;
|
||||
border-color: #CCCCCC #CCCCCC #B3B3B3;
|
||||
border-bottom: 1px solid #DDDDDD;
|
||||
background-color: #DFDFDF;
|
||||
padding: 10px 15px;
|
||||
width: 270px;
|
||||
margin-top: -18px;
|
||||
@ -709,7 +701,7 @@ div[data-tree-model] li .selected {
|
||||
|
||||
.collapse-button {
|
||||
position:absolute;
|
||||
left:480px;
|
||||
left:440px;
|
||||
color:#000000;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
@ -9,12 +9,20 @@
|
||||
<div>
|
||||
<div class="pull-right">
|
||||
<div class="btn-group">
|
||||
<a href="#/editaccrule/{{rule.id}}" class="btn btn-primary"><i class="icon-edit icon-white"></i> Edit</a>
|
||||
<a class="btn btn-primary" ng-click="deleteRule()"><i class="icon-trash icon-white"></i> Delete</a>
|
||||
<a href="#/editaccrule/{{rule.id}}" class="btn btn-primary"><i class="icon-edit icon-white"></i>{{'label.edit' | translate}}</a>
|
||||
<button class="btn btn-primary" ng-click="deleteRule()"><i class="icon-trash icon-white"></i>{{'label.delete' | translate}}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/ng-template" id="deleteaccrule.html">
|
||||
<div class="modal-header silver">
|
||||
<h3 class="bolder">{{'label.delete' | translate}}</h3>
|
||||
</div>
|
||||
<div class="modal-body modal-middle">
|
||||
<button class="btn btn-warning" ng-click="cancel()">{{'label.cancel' | translate}}</button>
|
||||
<button class="btn btn-primary" ng-click="delete()">{{'label.confirm' | translate}}</button>
|
||||
</div>
|
||||
</script>
|
||||
<div class="row paddedleft">
|
||||
<h3>{{rule.name}}</h3>
|
||||
<label>{{ 'label.office' | translate }} {{rule.officeName}}</label>
|
||||
|
||||
@ -6,8 +6,17 @@
|
||||
</ul>
|
||||
</div>
|
||||
<div class="pull-right">
|
||||
<button class="btn btn-primary" data-ng-click="deleteClosure()"><i class="icon-trash icon-white"></i>{{ 'label.delete' | translate }}</button>
|
||||
<button class="btn btn-primary" data-ng-click="deleteAcc()"><i class="icon-trash icon-white"></i>{{ 'label.delete' | translate }}</button>
|
||||
</div>
|
||||
<script type="text/ng-template" id="deleteacc.html">
|
||||
<div class="modal-header silver">
|
||||
<h3 class="bolder">{{'label.delete' | translate}}</h3>
|
||||
</div>
|
||||
<div class="modal-body modal-middle">
|
||||
<button class="btn btn-warning" ng-click="cancel()">{{'label.cancel' | translate}}</button>
|
||||
<button class="btn btn-primary" ng-click="delete()">{{'label.confirm' | translate}}</button>
|
||||
</div>
|
||||
</script>
|
||||
<div>
|
||||
<legend>{{ 'label.closed.accounting.details' | translate }}</legend>
|
||||
<div class="paddedleft">
|
||||
|
||||
@ -9,14 +9,22 @@
|
||||
<div class="paddedbottom">
|
||||
<div class="pull-right">
|
||||
<div class="btn-group">
|
||||
<a ng-hide="glaccount.disabled" class="btn btn-primary" ng-click="changeState(glaccount.disabled)"><i class="icon-lock icon-white"></i> Disable</a>
|
||||
<a ng-show="glaccount.disabled" class="btn btn-primary" ng-click="changeState(glaccount.disabled)"><i class="icon-unlock icon-white"></i> Enable</a>
|
||||
<a href="#/editglaccount/{{glaccount.id}}" class="btn btn-primary"><i class="icon-edit icon-white"></i> Edit</a>
|
||||
<a href="#" class="btn btn-primary" ng-click="deleteGLAccount()"><i class="icon-trash icon-white"></i> Delete</a>
|
||||
<a ng-hide="glaccount.disabled" class="btn btn-primary" ng-click="changeState(glaccount.disabled)"><i class="icon-lock icon-white"></i>{{'label.disable' | translate}}</a>
|
||||
<a ng-show="glaccount.disabled" class="btn btn-primary" ng-click="changeState(glaccount.disabled)"><i class="icon-unlock icon-white"></i>{{'label.enable' | translate}}</a>
|
||||
<a href="#/editglaccount/{{glaccount.id}}" class="btn btn-primary"><i class="icon-edit icon-white"></i>{{'label.edit' | translate}}</a>
|
||||
<button class="btn btn-primary" ng-click="deleteGLAccount()"><i class="icon-trash icon-white"></i>{{'label.delete' | translate}}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/ng-template" id="deleteglacc.html">
|
||||
<div class="modal-header silver">
|
||||
<h3 class="bolder">{{'label.delete' | translate}}</h3>
|
||||
</div>
|
||||
<div class="modal-body modal-middle">
|
||||
<button class="btn btn-warning" ng-click="cancel()">{{'label.cancel' | translate}}</button>
|
||||
<button class="btn btn-primary" ng-click="delete()">{{'label.confirm' | translate}}</button>
|
||||
</div>
|
||||
</script>
|
||||
<div class="row paddedleft">
|
||||
<h3>{{glaccount.name}}</h3>
|
||||
<table width="100%">
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
<div class="pull-right">
|
||||
<div class="btn-group">
|
||||
<a href="#/edituser/{{user.id}}" class="btn btn-primary"><i class="icon-edit icon-white"></i>{{'label.edit' | translate}}</a>
|
||||
<a ng-click="deleteuser()" class="btn btn-primary"><i class="icon-trash icon-white"></i>{{'label.delete' | translate}}</a>
|
||||
<button type="button" ng-click="deleteuser()" class="btn btn-primary"><i class="icon-trash icon-white"></i>{{'label.delete' | translate}}</button>
|
||||
<button type="button" class="btn btn-primary" data-ng-click="open()"><i class="icon-cog icon-white"></i>{{'label.changepassword' | translate}}</button>
|
||||
</div>
|
||||
</div>
|
||||
@ -36,6 +36,15 @@
|
||||
<button class="btn btn-warning" ng-click="cancel()">{{'label.cancel' | translate}}</button>
|
||||
<button class="btn btn-primary" ng-click="save()">{{'label.save' | translate}}</button>
|
||||
</div>
|
||||
</script>
|
||||
<script type="text/ng-template" id="deleteuser.html">
|
||||
<div class="modal-header silver">
|
||||
<h3 class="bolder">{{'label.delete' | translate}}</h3>
|
||||
</div>
|
||||
<div class="modal-body modal-middle">
|
||||
<button class="btn btn-warning" ng-click="cancel()">{{'label.cancel' | translate}}</button>
|
||||
<button class="btn btn-primary" ng-click="delete()">{{'label.confirm' | translate}}</button>
|
||||
</div>
|
||||
</script>
|
||||
<div class="row-fluid">
|
||||
<h3>{{user.firstname}} {{user.lastname}}</h3>
|
||||
|
||||
@ -54,7 +54,7 @@
|
||||
</div>
|
||||
<div class="modal-body modal-middle">
|
||||
<button class="btn btn-warning" ng-click="cancel()">{{'label.cancel' | translate}}</button>
|
||||
<button class="btn btn-primary" ng-click="unassign(center.staffId)">{{'label.confirm' | translate}}</button>
|
||||
<button class="btn btn-primary" ng-click="unassign()">{{'label.confirm' | translate}}</button>
|
||||
</div>
|
||||
</script>
|
||||
<div class="row-fluid">
|
||||
|
||||
@ -37,15 +37,6 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group" ng-show="showDeleteClient">
|
||||
<label class="control-label">Are you sure?</label>
|
||||
</div>
|
||||
|
||||
<div class="offset3" ng-show="showDeleteClient">
|
||||
<a ng-click="cancel()"class="btn">cancel</a>
|
||||
<a ng-click="submit()" class="btn btn-primary">Confirm</a>
|
||||
</div>
|
||||
|
||||
<div class="offset3" ng-show="!showDeleteClient">
|
||||
<button type="reset" ng-click="cancel()" class="btn">Cancel</button>
|
||||
<button type="submit" ng-disabled="!clientactionform.$valid" class="btn btn-primary">Save</button>
|
||||
|
||||
@ -31,9 +31,29 @@
|
||||
<span ng-repeat="button in buttons">
|
||||
<a href="{{button.href}}/{{client.id}}/{{button.subhref}}" class="btn btn-primary" ><i class="{{button.icon}} icon-white" ></i>{{button.name | translate}}</a>
|
||||
</span>
|
||||
<button type="button" class="btn btn-primary" data-ng-click="deleteClient()" data-ng-show="client.status.value=='Pending'"><i class="icon-trash icon-white"></i>{{"label.delete" | translate}}</button>
|
||||
<button type="button" class="btn btn-primary" data-ng-click="unassignStaffCenter()" data-ng-show="client.staffId"><i class="icon-user icon-white"></i>{{"label.unassignstaff" | translate}}</button>
|
||||
</div>
|
||||
</div>
|
||||
<br/>
|
||||
<script type="text/ng-template" id="deleteClient.html">
|
||||
<div class="modal-header silver">
|
||||
<h3 class="bolder">{{'label.delete' | translate}}</h3>
|
||||
</div>
|
||||
<div class="modal-body modal-middle">
|
||||
<button class="btn btn-warning" ng-click="cancel()">{{'label.cancel' | translate}}</button>
|
||||
<button class="btn btn-primary" ng-click="delete()">{{'label.confirm' | translate}}</button>
|
||||
</div>
|
||||
</script>
|
||||
<script type="text/ng-template" id="clientunassignstaff.html">
|
||||
<div class="modal-header silver">
|
||||
<h3 class="bolder">{{'label.unassignstaff' | translate}}</h3>
|
||||
</div>
|
||||
<div class="modal-body modal-middle">
|
||||
<button class="btn btn-warning" ng-click="cancel()">{{'label.cancel' | translate}}</button>
|
||||
<button class="btn btn-primary" ng-click="unassign()">{{'label.confirm' | translate}}</button>
|
||||
</div>
|
||||
</script>
|
||||
<div class="row-fluid">
|
||||
<div class="span7">
|
||||
<table width="100%" >
|
||||
|
||||
@ -35,28 +35,30 @@
|
||||
<a ng-show="group.active" href="#/newgrouploanaccount/{{group.id}}" class="btn btn-primary"><i class="icon-plus icon-white"></i>{{ 'label.group.loan.application' | translate }}</a>
|
||||
<a ng-show="group.active" href="#/newjlgloanaccount/{{group.id}}" class="btn btn-primary"><i class="icon-plus icon-white"></i>{{ 'label.jlg.loan.application' | translate }}</a>
|
||||
<a href="#/closegroup/{{group.id}}" class="btn btn-primary"><i class="icon-remove-circle icon-white"></i>{{ 'label.close' | translate }}</a>
|
||||
<button class="btn btn-primary" data-ng-click="deleteGrouppop()" data-ng-hide="group.status.value=='Active'"><i class="icon-trash icon-white"></i>{{ 'label.delete' | translate }}</button>
|
||||
<button class="btn btn-primary" data-ng-click="deleteGroup()" data-ng-hide="group.status.value=='Active'"><i class="icon-trash icon-white"></i>{{ 'label.delete' | translate }}</button>
|
||||
<a href="#/assignstaff/{{group.id}}/groups" class="btn btn-primary" data-ng-hide="group.staffId">{{ 'label.assignstaff' | translate }}</a>
|
||||
<button class="btn btn-primary" data-ng-click="unassignStaffpop()" data-ng-show="group.staffId">{{ 'label.unassignstaff' | translate }}</button>
|
||||
<button class="btn btn-primary" data-ng-click="unassignStaffGroup()" data-ng-show="group.staffId">{{ 'label.unassignstaff' | translate }}</button>
|
||||
</div>
|
||||
</div>
|
||||
<br/>
|
||||
<div data-ng-switch on="choice">
|
||||
<form data-ng-switch-when="3">
|
||||
<div class="offset3 paddedleft120">
|
||||
<button type="button" class="btn" data-ng-click="cancelDelete()">{{ 'label.cancel' | translate }}</button>
|
||||
<button type="button" class="btn btn-primary paddedleft" data-ng-click="delete(group.id)">{{ 'label.confirmdelete' | translate }}</button>
|
||||
</div>
|
||||
<hr/>
|
||||
</form>
|
||||
<form data-ng-switch-when="4">
|
||||
<div class="offset3 paddedleft120">
|
||||
<button type="button" class="btn" data-ng-click="cancelDelete()">{{ 'label.cancel' | translate }}</button>
|
||||
<button type="button" class="btn btn-primary paddedleft" data-ng-click="unassignStaff(group.staffId)">{{ 'label.confirm' | translate }}</button>
|
||||
</div>
|
||||
<hr/>
|
||||
</form>
|
||||
</div>
|
||||
<script type="text/ng-template" id="deletegroup.html">
|
||||
<div class="modal-header silver">
|
||||
<h3 class="bolder">{{'label.delete' | translate}}</h3>
|
||||
</div>
|
||||
<div class="modal-body modal-middle">
|
||||
<button class="btn btn-warning" ng-click="cancel()">{{'label.cancel' | translate}}</button>
|
||||
<button class="btn btn-primary" ng-click="delete()">{{'label.confirm' | translate}}</button>
|
||||
</div>
|
||||
</script>
|
||||
<script type="text/ng-template" id="groupunassignstaff.html">
|
||||
<div class="modal-header silver">
|
||||
<h3 class="bolder">{{'label.unassignstaff' | translate}}</h3>
|
||||
</div>
|
||||
<div class="modal-body modal-middle">
|
||||
<button class="btn btn-warning" ng-click="cancel()">{{'label.cancel' | translate}}</button>
|
||||
<button class="btn btn-primary" ng-click="unassign()">{{'label.confirm' | translate}}</button>
|
||||
</div>
|
||||
</script>
|
||||
<div class="row-fluid">
|
||||
<div class="span7">
|
||||
<div data-ng-show="group.status.value=='Closed'">
|
||||
|
||||
@ -7,14 +7,22 @@
|
||||
<div class="pull-right">
|
||||
<div class="btn-group" ng-show="showEditButtons">
|
||||
<a href="#/loan/{{loanId}}/editcharge/{{chargeId}}" class="btn btn-primary"><i class="icon-edit icon-white"></i> {{'button.edit' | translate}}</a>
|
||||
<a ng-click="deleteCharge()" class="btn btn-danger"><i class="icon-trash icon-white"></i>{{'button.delete' | translate}}</a>
|
||||
<button type="button" ng-click="deleteCharge()" class="btn btn-danger"><i class="icon-trash icon-white"></i>{{'button.delete' | translate}}</button>
|
||||
</div>
|
||||
<div class="btn-group" ng-show="showWaiveButton">
|
||||
<a ng-click="waiveCharge()" class="btn btn-primary"><i class="icon-flag icon-white"></i> {{'button.waive' | translate}}</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/ng-template" id="deletecharge.html">
|
||||
<div class="modal-header silver">
|
||||
<h3 class="bolder">{{'label.delete' | translate}}</h3>
|
||||
</div>
|
||||
<div class="modal-body modal-middle">
|
||||
<button class="btn btn-warning" ng-click="cancel()">{{'label.cancel' | translate}}</button>
|
||||
<button class="btn btn-primary" ng-click="delete()">{{'label.confirm' | translate}}</button>
|
||||
</div>
|
||||
</script>
|
||||
<div class="row-fluid">
|
||||
<h3>{{'label.loan.view.charge' | translate}}</h3>
|
||||
<table width="100%">
|
||||
|
||||
@ -7,11 +7,19 @@
|
||||
<div class="pull-right">
|
||||
<div class="btn-group">
|
||||
<a href="#/loan/{{loanId}}/editcollateral/{{collateralId}}" class="btn btn-primary"><i class="icon-edit icon-white"></i> {{'button.edit' | translate}}</a>
|
||||
<a ng-click="deleteCollateral()" class="btn btn-danger"><i class="icon-trash icon-white"></i>{{'button.delete' | translate}}</a>
|
||||
<button type="button" ng-click="deleteCollateral()" class="btn btn-danger"><i class="icon-trash icon-white"></i>{{'button.delete' | translate}}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/ng-template" id="deletecollateral.html">
|
||||
<div class="modal-header silver">
|
||||
<h3 class="bolder">{{'label.delete' | translate}}</h3>
|
||||
</div>
|
||||
<div class="modal-body modal-middle">
|
||||
<button class="btn btn-warning" ng-click="cancel()">{{'label.cancel' | translate}}</button>
|
||||
<button class="btn btn-primary" ng-click="delete()">{{'label.confirm' | translate}}</button>
|
||||
</div>
|
||||
</script>
|
||||
<div class="row-fluid">
|
||||
<h3>{{'label.loan.view.collateral' | translate}}</h3>
|
||||
<table width="100%">
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
<div class="row alert-block span" ng-controller="NavigationController">
|
||||
<ul class="breadcrumb silver">
|
||||
<div ng-controller="NavigationController">
|
||||
<div>
|
||||
<ul class="breadcrumb">
|
||||
<li data-ng-show="officeName">{{officeName}}</li>
|
||||
<li data-ng-show="loanOfficer">/ {{loanOfficer}}</li>
|
||||
<li data-ng-show="centerName">/ {{centerName}}</li>
|
||||
@ -85,7 +86,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="span6">
|
||||
<ul class="breadcrumb nav-header">
|
||||
<ul class="breadcrumb">
|
||||
<li>
|
||||
<i class="icon-user icon-2x" data-ng-show="client"></i>
|
||||
<i class="icon-user icon-2x" data-ng-show="staff"></i>
|
||||
|
||||
@ -18,19 +18,19 @@
|
||||
<div class="row-fluid primarydiv">
|
||||
<div class="btn-group pull-right" data-ng-hide="center.status.value == 'Closed'">
|
||||
<a href="#/editproductmix/{{productmix.productId}}" class="btn btn-primary"><i class="icon-edit icon-white"></i>{{ 'label.edit' | translate }}</a>
|
||||
<button class="btn btn-primary" data-ng-click="deleteproductmixpop()"><i class="icon-trash icon-white"></i>{{ 'label.delete' | translate }}</button>
|
||||
<button class="btn btn-warning" data-ng-click="deleteProductmix()"><i class="icon-trash icon-white"></i>{{ 'label.delete' | translate }}</button>
|
||||
</div>
|
||||
</div>
|
||||
<br/>
|
||||
<div data-ng-switch on="choice">
|
||||
<form data-ng-switch-when="1">
|
||||
<div class="offset3 paddedleft120">
|
||||
<button type="button" class="btn" data-ng-click="cancelDelete()">{{ 'label.cancel' | translate }}</button>
|
||||
<button type="button" class="btn btn-primary paddedleft" data-ng-click="delete(center.id)">{{ 'label.confirmdelete' | translate }}</button>
|
||||
</div>
|
||||
<hr/>
|
||||
</form>
|
||||
</div>
|
||||
<script type="text/ng-template" id="deleteproductmix.html">
|
||||
<div class="modal-header silver">
|
||||
<h3 class="bolder">{{'label.delete' | translate}}</h3>
|
||||
</div>
|
||||
<div class="modal-body modal-middle">
|
||||
<button class="btn btn-warning" ng-click="cancel()">{{'label.cancel' | translate}}</button>
|
||||
<button class="btn btn-primary" ng-click="delete()">{{'label.confirm' | translate}}</button>
|
||||
</div>
|
||||
</script>
|
||||
<div class="row-fluid">
|
||||
<div class="span6">
|
||||
<table class="table table-striped" width="100%" >
|
||||
|
||||
@ -23,19 +23,19 @@
|
||||
<div class="row-fluid primarydiv">
|
||||
<div class="btn-group pull-right">
|
||||
<a href="#/editcharge/{{charge.id}}" class="btn btn-primary"><i class="icon-edit icon-white"></i>{{'label.edit' | translate}}</a>
|
||||
<button type="button" data-ng-click="deletepop()" class="btn btn-primary"><i class="icon-trash icon-white"></i>{{'label.delete' | translate}}</button>
|
||||
<button type="button" data-ng-click="deleteCharge()" class="btn btn-warning"><i class="icon-trash icon-white"></i>{{'label.delete' | translate}}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div ng-switch="choice">
|
||||
<form data-ng-switch-when="1">
|
||||
<div class="offset3 paddedleft120">
|
||||
<button type="button" class="btn" data-ng-click="cancel()">{{ 'label.cancel' | translate }}</button>
|
||||
<button type="button" class="btn btn-primary" data-ng-click="deleteCharge()">{{ 'label.confirmdelete' | translate }}</button>
|
||||
<hr/>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<script type="text/ng-template" id="deletech.html">
|
||||
<div class="modal-header silver">
|
||||
<h3 class="bolder">{{'label.delete' | translate}}</h3>
|
||||
</div>
|
||||
<div class="modal-body modal-middle">
|
||||
<button class="btn btn-warning" ng-click="cancel()">{{'label.cancel' | translate}}</button>
|
||||
<button class="btn btn-primary" ng-click="delete()">{{'label.confirm' | translate}}</button>
|
||||
</div>
|
||||
</script>
|
||||
<div class="row paddedleft">
|
||||
<table width="40%">
|
||||
<tr>
|
||||
|
||||
@ -9,11 +9,20 @@
|
||||
<div class="row">
|
||||
<div class="pull-right">
|
||||
<div class="btn-group">
|
||||
<a href="#/editcode/{{code.id}}" class="btn btn-primary"><i class="icon-edit icon-white"></i> Edit</a>
|
||||
<a data-ng-click="delcode()" class="btn btn-primary" ng-show="code.systemDefined == false"><i class="icon-trash icon-white"></i> Delete</a>
|
||||
<a href="#/editcode/{{code.id}}" class="btn btn-primary"><i class="icon-edit icon-white"></i>{{'label.edit' | translate}}</a>
|
||||
<a data-ng-click="delCode()" class="btn btn-primary" ng-show="code.systemDefined == false"><i class="icon-trash icon-white"></i>{{'label.delete' | translate}}</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/ng-template" id="deletecode.html">
|
||||
<div class="modal-header silver">
|
||||
<h3 class="bolder">{{'label.delete' | translate}}</h3>
|
||||
</div>
|
||||
<div class="modal-body modal-middle">
|
||||
<button class="btn btn-warning" ng-click="cancel()">{{'label.cancel' | translate}}</button>
|
||||
<button class="btn btn-primary" ng-click="delete()">{{'label.confirm' | translate}}</button>
|
||||
</div>
|
||||
</script>
|
||||
<div class="row paddedleft">
|
||||
<h3>{{code.name}}</h3>
|
||||
<div>
|
||||
|
||||
@ -11,9 +11,18 @@
|
||||
<div class="pull-right">
|
||||
<div class="btn-group">
|
||||
<a href="#/editdatatable/{{datatable.registeredTableName}}" class="btn btn-primary"><i class="icon-edit icon-white"></i> {{'button.edit' | translate}}</a>
|
||||
<a class="btn btn-primary" ng-click="deleteTable()"><i class="icon-trash icon-white"></i> {{'button.delete' | translate}}</a>
|
||||
<button type="button" class="btn btn-warning" ng-click="deleteTable()"><i class="icon-trash icon-white"></i> {{'button.delete' | translate}}</button>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/ng-template" id="deletetable.html">
|
||||
<div class="modal-header silver">
|
||||
<h3 class="bolder">{{'label.delete' | translate}}</h3>
|
||||
</div>
|
||||
<div class="modal-body modal-middle">
|
||||
<button class="btn btn-warning" ng-click="cancel()">{{'label.cancel' | translate}}</button>
|
||||
<button class="btn btn-primary" ng-click="delete()">{{'label.confirm' | translate}}</button>
|
||||
</div>
|
||||
</script>
|
||||
<legend>{{datatable.registeredTableName}}</legend>
|
||||
<strong>{{'label.associatedwith' | translate}}</strong> {{datatable.applicationTableName}}
|
||||
<table class="table" ui:sortable>
|
||||
|
||||
@ -3,8 +3,17 @@
|
||||
<h2>{{ 'label.view.datatable.entry' | translate }}</h2>
|
||||
<div class="row pull-right btn-group">
|
||||
<a ng-click="editDatatableEntry()" class="btn btn-primary"><i class="icon-edit icon-white"></i>{{ 'button.edit' | translate }}</a>
|
||||
<a ng-click="deleteDatatableEntry()" class="btn btn-danger"><i class="icon-trash icon-white"></i> {{ 'button.delete' | translate }}</a>
|
||||
<button type="button" ng-click="deleteDatatableEntry()" class="btn btn-danger"><i class="icon-trash icon-white"></i> {{ 'button.delete' | translate }}</button>
|
||||
</div>
|
||||
<script type="text/ng-template" id="deletedatatable.html">
|
||||
<div class="modal-header silver">
|
||||
<h3 class="bolder">{{'label.delete' | translate}}</h3>
|
||||
</div>
|
||||
<div class="modal-body modal-middle">
|
||||
<button class="btn btn-warning" ng-click="cancel()">{{'label.cancel' | translate}}</button>
|
||||
<button class="btn btn-primary" ng-click="delete()">{{'label.confirm' | translate}}</button>
|
||||
</div>
|
||||
</script>
|
||||
<h3>{{ 'label.datatable.name' | translate }}-<strong>{{tableName}}</strong></h3>
|
||||
<hr>
|
||||
<table width="100%">
|
||||
|
||||
@ -9,9 +9,18 @@
|
||||
<div class="pull-right">
|
||||
<div class="btn-group">
|
||||
<a href="#/editreport/{{report.id}}" class="btn btn-primary"><i class="icon-edit icon-white"></i> Edit</a>
|
||||
<a href="#" class="btn btn-primary" ng-show="noncoreReport" ng-click="deletereport()"><i class="icon-trash icon-white"></i> Delete</a>
|
||||
<button type="button" class="btn btn-danger" ng-show="noncoreReport" ng-click="deletereport()"><i class="icon-trash icon-white"></i> Delete</button>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/ng-template" id="deletenoncorereport.html">
|
||||
<div class="modal-header silver">
|
||||
<h3 class="bolder">{{'label.delete' | translate}}</h3>
|
||||
</div>
|
||||
<div class="modal-body modal-middle">
|
||||
<button class="btn btn-warning" ng-click="cancel()">{{'label.cancel' | translate}}</button>
|
||||
<button class="btn btn-primary" ng-click="delete()">{{'label.confirm' | translate}}</button>
|
||||
</div>
|
||||
</script>
|
||||
<div class="row paddedleft">
|
||||
<h3>{{report.reportName}}</h3>
|
||||
<table width="100%">
|
||||
|
||||
@ -6,12 +6,20 @@
|
||||
</ul>
|
||||
<div class="pull-right">
|
||||
<div class="btn-group">
|
||||
<a href="#/edittemplate/{{template.id}}" class="btn btn-primary"><i class="icon-edit icon-white"></i> Edit</a>
|
||||
<a href="#" class="btn btn-primary" ng-click="deleteTemplate()"><i class="icon-trash icon-white"></i> Delete</a>
|
||||
<a href="#/edittemplate/{{template.id}}" class="btn btn-primary"><i class="icon-edit icon-white"></i>{{'label.edit' | translate}}</a>
|
||||
<button type="button" class="btn btn-warning" ng-click="deleteTemplate()"><i class="icon-trash icon-white"></i>{{'label.delete' | translate}}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/ng-template" id="deletetemplate.html">
|
||||
<div class="modal-header silver">
|
||||
<h3 class="bolder">{{'label.delete' | translate}}</h3>
|
||||
</div>
|
||||
<div class="modal-body modal-middle">
|
||||
<button class="btn btn-warning" ng-click="cancel()">{{'label.cancel' | translate}}</button>
|
||||
<button class="btn btn-primary" ng-click="delete()">{{'label.confirm' | translate}}</button>
|
||||
</div>
|
||||
</script>
|
||||
<div class="row paddedleft">
|
||||
<h3>{{template.name}}</h3>
|
||||
<table width="80%">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user