#MIFOSX-991,#MIFOSX-979 Comment Fixes

This commit is contained in:
Madhukar 2014-03-15 19:02:02 +05:30
parent 43ce450411
commit 7f1bdce173
50 changed files with 105 additions and 144 deletions

View File

@ -55,9 +55,9 @@
var GlAccDeleteCtrl = function ($scope, $modalInstance) {
$scope.delete = function () {
resourceFactory.accountCoaResource.delete({glAccountId: routeParams.id}, {}, function (data) {
$modalInstance.close('delete');
location.path('/accounting_coa');
});
$modalInstance.close('delete');
};
$scope.cancel = function () {
$modalInstance.dismiss('cancel');

View File

@ -14,9 +14,9 @@
var AccRuleDeleteCtrl = function ($scope, $modalInstance) {
$scope.delete = function () {
resourceFactory.accountingRulesResource.delete({accountingRuleId: routeParams.id}, {}, function (data) {
$modalInstance.close('delete');
location.path('/accounting_rules');
});
$modalInstance.close('delete');
};
$scope.cancel = function () {
$modalInstance.dismiss('cancel');

View File

@ -15,9 +15,9 @@
var AccDeleteCtrl = function ($scope, $modalInstance) {
$scope.delete = function () {
resourceFactory.accountingClosureResource.delete({accId: routeParams.id}, {}, function (data) {
$modalInstance.close('delete');
location.path('/accounts_closure');
});
$modalInstance.close('delete');
};
$scope.cancel = function () {
$modalInstance.dismiss('cancel');

View File

@ -27,8 +27,8 @@
var ConfirmationCtrl = function ($scope, $modalInstance, id) {
$scope.transactionnumber = id.transactionId;
$scope.redirect = function () {
location.path('/viewtransactions/' + id.transactionId);
$modalInstance.close('delete');
location.path('/viewtransactions/' + id.transactionId);
};
$scope.cancel = function () {
$modalInstance.dismiss('cancel');

View File

@ -38,9 +38,9 @@
var CenterDeleteCtrl = function ($scope, $modalInstance) {
$scope.delete = function () {
resourceFactory.centerResource.delete({centerId: routeParams.id}, {}, function (data) {
$modalInstance.close('activate');
location.path('/centers');
});
$modalInstance.close('activate');
};
$scope.cancel = function () {
@ -50,9 +50,9 @@
var CenterUnassignCtrl = function ($scope, $modalInstance) {
$scope.unassign = function () {
resourceFactory.groupResource.save({groupId: routeParams.id, command: 'unassignStaff'}, scope.staffData, function (data) {
$modalInstance.close('activate');
route.reload();
});
$modalInstance.close('activate');
};
$scope.cancel = function () {
$modalInstance.dismiss('cancel');

View File

@ -85,10 +85,10 @@
if (!scope.$$phase) {
scope.$apply();
}
$modalInstance.close('upload');
route.reload();
});
}
$modalInstance.close('upload');
};
$scope.cancel = function () {
$modalInstance.dismiss('cancel');
@ -103,9 +103,9 @@
var ClientDeleteCtrl = function ($scope, $modalInstance) {
$scope.delete = function () {
resourceFactory.clientResource.delete({clientId: routeParams.id}, {}, function (data) {
$modalInstance.close('delete');
location.path('/clients');
});
$modalInstance.close('delete');
};
$scope.cancel = function () {
$modalInstance.dismiss('cancel');
@ -114,9 +114,9 @@
var ClientUnassignCtrl = function ($scope, $modalInstance) {
$scope.unassign = function () {
resourceFactory.clientResource.save({clientId: routeParams.id, command: 'unassignstaff'}, scope.staffData, function (data) {
$modalInstance.close('unassign');
route.reload();
});
$modalInstance.close('unassign');
};
$scope.cancel = function () {
$modalInstance.dismiss('cancel');

View File

@ -51,9 +51,9 @@
var GroupUnassignCtrl = function ($scope, $modalInstance) {
$scope.unassign = function () {
resourceFactory.groupResource.save({groupId: routeParams.id, command: 'unassignstaff'}, scope.staffData, function (data) {
$modalInstance.close('unassign');
route.reload();
});
$modalInstance.close('unassign');
};
$scope.cancel = function () {
$modalInstance.dismiss('cancel');
@ -62,9 +62,9 @@
var GroupDeleteCtrl = function ($scope, $modalInstance) {
$scope.delete = function () {
resourceFactory.groupResource.delete({groupId: routeParams.id}, {}, function (data) {
$modalInstance.close('delete');
location.path('/groups');
});
$modalInstance.close('delete');
};
$scope.cancel = function () {
$modalInstance.dismiss('cancel');

View File

@ -22,9 +22,9 @@
var ChargeDeleteCtrl = function ($scope, $modalInstance) {
$scope.delete = function () {
resourceFactory.loanResource.delete({ resourceType: 'charges', loanId: scope.loanId, resourceId: scope.chargeId}, {}, function (data) {
$modalInstance.close('delete');
location.path('/viewloanaccount/' + scope.loanId);
});
$modalInstance.close('delete');
};
$scope.cancel = function () {
$modalInstance.dismiss('cancel');

View File

@ -16,9 +16,9 @@
var CollateralDeleteCtrl = function ($scope, $modalInstance) {
$scope.delete = function () {
resourceFactory.loanResource.delete({ resourceType: 'collaterals', loanId: scope.loanId, resourceId: scope.collateralId}, {}, function (data) {
$modalInstance.close('delete');
location.path('/viewloanaccount/' + scope.loanId);
});
$modalInstance.close('delete');
};
$scope.cancel = function () {
$modalInstance.dismiss('cancel');

View File

@ -97,9 +97,9 @@
var DelChargeCtrl = function ($scope, $modalInstance, ids) {
$scope.delete = function () {
resourceFactory.LoanAccountResource.delete({loanId: routeParams.id, resourceType: 'charges', chargeId: ids}, {}, function (data) {
$modalInstance.close('delete');
route.reload();
});
$modalInstance.close('delete');
};
$scope.cancel = function () {
$modalInstance.dismiss('cancel');
@ -314,9 +314,9 @@
var GuarantorDeleteCtrl = function ($scope, $modalInstance, id) {
$scope.delete = function () {
resourceFactory.guarantorResource.delete({loanId: routeParams.id, templateResource: id}, {}, function (data) {
$modalInstance.close('delete');
route.reload();
});
$modalInstance.close('delete');
};
$scope.cancel = function () {
$modalInstance.dismiss('cancel');

View File

@ -7,8 +7,7 @@
scope.login = function () {
authenticationService.authenticateWithUsernamePassword(scope.loginCredentials);
//clearing username and password fields
scope.loginCredentials = {};
delete scope.loginCredentials.password;
};
$('#pwd').keypress(function (e) {

View File

@ -21,9 +21,9 @@
$scope.approve = function () {
resourceFactory.checkerInboxResource.save({templateResource: routeParams.id, command: 'approve'}, {}, function (data) {
$modalInstance.close('approve');
location.path('/checkeractionperformed');
});
$modalInstance.close('approve');
};
$scope.cancel = function () {
$modalInstance.dismiss('cancel');
@ -39,9 +39,9 @@
var DeleteCtrl = function ($scope, $modalInstance) {
$scope.delete = function () {
resourceFactory.checkerInboxResource.delete({templateResource: routeParams.id}, {}, function (data) {
$modalInstance.close('delete');
location.path('/checkeractionperformed');
});
$modalInstance.close('delete');
};
$scope.cancel = function () {
$modalInstance.dismiss('cancel');

View File

@ -1,20 +0,0 @@
(function (module) {
mifosX.controllers = _.extend(module, {
AddCodeController: function (scope, resourceFactory, location) {
scope.codes = [];
resourceFactory.codeResources.getAllCodes(function (data) {
scope.codes = data;
});
scope.submit = function () {
resourceFactory.codeResources.save(this.formData, function (data) {
location.path('/codes');
});
};
}
});
mifosX.ng.application.controller('AddCodeController', ['$scope', 'ResourceFactory', '$location', mifosX.controllers.AddCodeController]).run(function ($log) {
$log.info("AddCodeController initialized");
});
}(mifosX.controllers || {}));

View File

@ -1,14 +0,0 @@
(function (module) {
mifosX.controllers = _.extend(module, {
DataTableController: function (scope, resourceFactory) {
resourceFactory.DataTablesResource.getAllDataTables(function (data) {
scope.datatables = data;
});
}
});
mifosX.ng.application.controller('DataTableController', ['$scope', 'ResourceFactory', mifosX.controllers.DataTableController]).run(function ($log) {
$log.info("DataTableController initialized");
});
}(mifosX.controllers || {}));

View File

@ -1,21 +0,0 @@
(function (module) {
mifosX.controllers = _.extend(module, {
ViewAccRuleController: function (scope, resourceFactory, routeParams, location) {
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');
});
};
}
});
mifosX.ng.application.controller('ViewAccRuleController', ['$scope', 'ResourceFactory', '$routeParams', '$location', mifosX.controllers.ViewAccRuleController]).run(function ($log) {
$log.info("ViewAccRuleController initialized");
});
}(mifosX.controllers || {}));

View File

@ -1,22 +0,0 @@
(function (module) {
mifosX.controllers = _.extend(module, {
ViewCodeController: function (scope, routeParams, resourceFactory, location) {
scope.codevalues = [];
resourceFactory.codeResources.get({codeId: routeParams.id}, function (data) {
scope.code = data;
});
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');
});
}
}
});
mifosX.ng.application.controller('ViewCodeController', ['$scope', '$routeParams', 'ResourceFactory', '$location', mifosX.controllers.ViewCodeController]).run(function ($log) {
$log.info("ViewCodeController initialized");
});
}(mifosX.controllers || {}));

View File

@ -1,26 +0,0 @@
(function (module) {
mifosX.controllers = _.extend(module, {
ViewDataTableController: function (scope, routeParams, resourceFactory) {
resourceFactory.DataTablesResource.getTableDetails({datatablename: routeParams.tableName}, function (data) {
var temp = [];
var colName = data.columnHeaderData[0].columnName;
if (colName == 'id' || colName == 'client_id' || colName == 'office_id' || colName == 'group_id' || colName == 'center_id' || colName == 'loan_id' || colName == 'savings_account_id') {
data.columnHeaderData.splice(0, 1);
}
for (var i = 0; i < data.columnHeaderData.length; i++) {
if (data.columnHeaderData[i].columnName.indexOf("_cd_") > 0) {
temp = data.columnHeaderData[i].columnName.split("_cd_");
data.columnHeaderData[i].columnName = temp[1];
data.columnHeaderData[i].code = temp[0];
}
}
scope.datatable = data;
});
}
});
mifosX.ng.application.controller('ViewDataTableController', ['$scope', '$routeParams', 'ResourceFactory', mifosX.controllers.ViewDataTableController]).run(function ($log) {
$log.info("ViewDataTableController initialized");
});
}(mifosX.controllers || {}));

View File

@ -24,9 +24,9 @@
var activateHolidayCtrl = function ($scope, $modalInstance) {
$scope.activate = function () {
resourceFactory.holValueResource.save({holId: routeParams.id, command: 'Activate'}, {}, function (data) {
$modalInstance.close('activate');
route.reload();
});
$modalInstance.close('activate');
};
$scope.cancel = function () {
$modalInstance.dismiss('cancel');
@ -43,9 +43,9 @@
var deleteHolidayCtrl = function ($scope, $modalInstance) {
$scope.activate = function () {
resourceFactory.holValueResource.delete({holId: routeParams.id}, {}, function (data) {
$modalInstance.close('activate');
location.path('holidays');
});
$modalInstance.close('activate');
};
$scope.cancel = function () {
$modalInstance.dismiss('cancel');

View File

@ -34,7 +34,6 @@
var permissionData = {};
permissionData.permissions = this.formData;
resourceFactory.rolePermissionResource.update({roleId: routeParams.id}, permissionData, function (data) {
scope.logout();
route.reload();
scope.isDisabled = true;

View File

@ -16,9 +16,9 @@
var ChDeleteCtrl = function ($scope, $modalInstance) {
$scope.delete = function () {
resourceFactory.chargeResource.delete({chargeId: routeParams.id}, {}, function (data) {
$modalInstance.close('delete');
location.path('/charges');
});
$modalInstance.close('delete');
};
$scope.cancel = function () {
$modalInstance.dismiss('cancel');

View File

@ -20,9 +20,9 @@
var ProductmixDeleteCtrl = function ($scope, $modalInstance) {
$scope.delete = function () {
resourceFactory.loanProductResource.delete({loanProductId: routeParams.id, resourceType: 'productmix'}, {}, function (data) {
$modalInstance.close('delete');
location.path('/productmix');
});
$modalInstance.close('delete');
};
$scope.cancel = function () {
$modalInstance.dismiss('cancel');

View File

@ -83,9 +83,9 @@
} else if (data.officeId) {
destination = '/viewoffice/' + data.officeId;
}
$modalInstance.close('delete');
location.path(destination);
});
$modalInstance.close('delete');
};
$scope.cancel = function () {
$modalInstance.dismiss('cancel');

View File

@ -45,9 +45,9 @@
var CodeDeleteCtrl = function ($scope, $modalInstance) {
$scope.delete = function () {
resourceFactory.codeResources.delete({codeId: routeParams.id}, {}, function (data) {
$modalInstance.close('delete');
location.path('/codes');
});
$modalInstance.close('delete');
};
$scope.cancel = function () {
$modalInstance.dismiss('cancel');
@ -76,9 +76,9 @@
var CodeValueDeleteCtrl = function ($scope, $modalInstance, cvid) {
$scope.delete = function () {
resourceFactory.codeValueResource.delete({codeId: routeParams.id, codevalueId: cvid}, {}, function (data) {
$modalInstance.close('delete');
route.reload();
});
$modalInstance.close('delete');
};
$scope.cancel = function () {
$modalInstance.dismiss('cancel');

View File

@ -32,9 +32,9 @@
var TableDeleteCtrl = function ($scope, $modalInstance) {
$scope.delete = function () {
resourceFactory.DataTablesResource.delete({datatablename: routeParams.tableName}, {}, function (data) {
$modalInstance.close('delete');
location.path('/datatables');
});
$modalInstance.close('delete');
};
$scope.cancel = function () {
$modalInstance.dismiss('cancel');

View File

@ -14,9 +14,9 @@
var NoncoreReportDeleteCtrl = function ($scope, $modalInstance) {
$scope.delete = function () {
resourceFactory.reportsResource.delete({id: routeParams.id}, {}, function (data) {
$modalInstance.close('delete');
location.path('/reports');
});
$modalInstance.close('delete');
};
$scope.cancel = function () {
$modalInstance.dismiss('cancel');

View File

@ -14,11 +14,11 @@
var TemplateDeleteCtrl = function ($scope, $modalInstance) {
$scope.delete = function () {
resourceFactory.templateResource.delete({templateId: routeParams.id}, {}, function (data) {
$modalInstance.close('delete');
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');

View File

@ -20,9 +20,9 @@
var ModalInstanceCtrl = function ($scope, $modalInstance) {
$scope.save = function (staffId) {
resourceFactory.userListResource.update({'userId': routeParams.id}, this.formData, function (data) {
$modalInstance.close('activate');
route.reload();
});
$modalInstance.close('activate');
};
$scope.cancel = function () {
$modalInstance.dismiss('cancel');
@ -32,11 +32,11 @@
var UserDeleteCtrl = function ($scope, $modalInstance) {
$scope.delete = function () {
resourceFactory.userListResource.delete({userId: routeParams.id}, {}, function (data) {
$modalInstance.close('delete');
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');

View File

@ -159,7 +159,7 @@
currencyConfigResource: defineResource(apiVer + "/currencies", {}, {
get: {method: 'GET', params: {}},
update: { method: 'PUT'},
upd: { method: 'PUT', params: {}, isArray: true}
upd: { method: 'PUT', params: {}}
}),
userListResource: defineResource(apiVer + "/users/:userId", {userId: '@userId'}, {
getAllUsers: {method: 'GET', params: {}, isArray: true},

View File

@ -20,6 +20,8 @@
<h3 class="bolder">{{'label.heading.delete' | translate}}</h3>
</div>
<div class="modal-body ">
<api-validate></api-validate>
<br>
<button class="btn btn-warning" ng-click="cancel()">{{'label.button.cancel' | translate}}</button>
<button class="btn btn-primary" ng-click="delete()">{{'label.button.confirm' | translate}}</button>
</div>

View File

@ -17,6 +17,8 @@
<h3 class="bolder">{{'label.heading.delete' | translate}}</h3>
</div>
<div class="modal-body ">
<api-validate></api-validate>
<br>
<button class="btn btn-warning" ng-click="cancel()">{{'label.button.cancel' | translate}}</button>
<button class="btn btn-primary" ng-click="delete()">{{'label.button.confirm' | translate}}</button>
</div>

View File

@ -24,6 +24,8 @@
</h4>
</div>
<div class="modal-footer">
<api-validate></api-validate>
<br>
<button class="btn btn-warning" ng-click="cancel()">{{'label.button.cancel' | translate}}</button>
<button class="btn btn-primary" ng-click="redirect()">{{'label.button.redirecttonewtrx' | translate}}
</button>

View File

@ -24,6 +24,8 @@
<h3 class="bolder">{{'label.heading.delete' | translate}}</h3>
</div>
<div class="modal-body ">
<api-validate></api-validate>
<br>
<button class="btn btn-warning" ng-click="cancel()">{{'label.button.cancel' | translate}}</button>
<button class="btn btn-primary" ng-click="delete()">{{'label.button.confirm' | translate}}</button>
</div>

View File

@ -11,6 +11,8 @@
</div>
<div class="modal-body">
<api-validate></api-validate>
<br>
<div class="control-group">
<label class="control-label" for="password">{{ 'label.input.password' | translate }}</label>
@ -37,6 +39,8 @@
<h3 class="bolder">{{'label.heading.delete' | translate}}</h3>
</div>
<div class="modal-body ">
<api-validate></api-validate>
<br>
<button class="btn btn-warning" ng-click="cancel()">{{'label.button.cancel' | translate}}</button>
<button class="btn btn-primary" ng-click="delete()">{{'label.button.confirm' | translate}}</button>
</div>

View File

@ -68,6 +68,8 @@
<h3 class="bolder">{{'label.heading.delete' | translate}}</h3>
</div>
<div class="modal-body ">
<api-validate></api-validate>
<br>
<button class="btn btn-warning" ng-click="cancel()">{{'label.button.cancel' | translate}}</button>
<button class="btn btn-primary" ng-click="delete()">{{'label.button.confirm' | translate}}</button>
</div>
@ -77,6 +79,8 @@
<h3 class="bolder">{{'label.heading.unassignstaff' | translate}}</h3>
</div>
<div class="modal-body ">
<api-validate></api-validate>
<br>
<button class="btn btn-warning" ng-click="cancel()">{{'label.button.cancel' | translate}}</button>
<button class="btn btn-primary" ng-click="unassign()">{{'label.button.confirm' | translate}}</button>
</div>

View File

@ -62,6 +62,8 @@
<h3 class="bolder">{{'label.heading.delete' | translate}}</h3>
</div>
<div class="modal-body">
<api-validate></api-validate>
<br>
<button class="btn btn-warning" ng-click="cancel()">{{'label.button.cancel' | translate}}</button>
<button class="btn btn-primary" ng-click="delete()">{{'label.button.confirm' | translate}}</button>
</div>
@ -71,6 +73,8 @@
<h3 class="bolder">{{'label.heading.selectclientimage' | translate}}</h3>
</div>
<div class="modal-body">
<api-validate></api-validate>
<br>
<input type="file" ng-file-select="onFileSelect($files)">
</div>
<div class="modal-footer">
@ -83,6 +87,8 @@
<h3 class="bolder">{{'label.heading.unassignstaff' | translate}}</h3>
</div>
<div class="modal-body">
<api-validate></api-validate>
<br>
<button class="btn btn-warning" ng-click="cancel()">{{'label.button.cancel' | translate}}</button>
<button class="btn btn-primary" ng-click="unassign()">{{'label.button.confirm' | translate}}</button>
</div>
@ -111,8 +117,8 @@
</tr>
<tr>
<th class="table-bold">{{ 'label.input.activationdate' | translate }}</th>
<td><span class="padded-td">{{client.timeline.activationDate | DateFormat}}<span
data-ng-hide="client.timeline.activationDate">{{ 'label.notactivated' | translate }}</span></span></td>
<td><span class="padded-td">{{client.timeline.activatedOnDate | DateFormat}}<span
data-ng-hide="client.timeline.activatedOnDate">{{ 'label.notactivated' | translate }}</span></span></td>
</tr>
<tr data-ng-show="client.officeName">
<th class="table-bold">{{ 'label.input.office' | translate }}</th>
@ -328,14 +334,14 @@
<td>
<span ng-repeat="file in document.documents">
{{file.fileName}}&nbsp;&nbsp;
<a target="_blank" href="{{hostUrl}}{{file.docUrl}}"><i class="icon-cloud-download"></i></a>
<a target="_blank" href="{{hostUrl}}{{file.docUrl}}" has-permission='READ_DOCUMENT'><i class="icon-cloud-download"></i></a>
</span>
</td>
<td>
<span>
<a href="#/addclientidentifierdocument/{{client.id}}/{{document.id}}"><i
<a href="#/addclientidentifierdocument/{{client.id}}/{{document.id}}" has-permission='CREATE_DOCUMENT'><i
class="icon-cloud-upload"></i></a>&nbsp;
<a ng-click="deleteClientIdentifierDocument(client.id,document.id,$index)"><i
<a ng-click="deleteClientIdentifierDocument(client.id,document.id,$index)" has-permission='DELETE_CLIENTIDENTIFIER'><i
class="icon-remove"></i></a>
</span>
</td>

View File

@ -82,6 +82,8 @@
<h3 class="bolder">{{'label.heading.delete' | translate}}</h3>
</div>
<div class="modal-body">
<api-validate></api-validate>
<br>
<button class="btn btn-warning" ng-click="cancel()">{{'label.button.cancel' | translate}}</button>
<button class="btn btn-primary" ng-click="delete()">{{'label.button.confirm' | translate}}</button>
</div>
@ -91,6 +93,8 @@
<h3 class="bolder">{{'label.heading.unassignstaff' | translate}}</h3>
</div>
<div class="modal-body">
<api-validate></api-validate>
<br>
<button class="btn btn-warning" ng-click="cancel()">{{'label.button.cancel' | translate}}</button>
<button class="btn btn-primary" ng-click="unassign()">{{'label.button.confirm' | translate}}</button>
</div>

View File

@ -256,6 +256,8 @@
<h3 class="bolder">{{'label.heading.delete' | translate}}</h3>
</div>
<div class="modal-body ">
<api-validate></api-validate>
<br>
<button class="btn btn-warning" ng-click="cancel()">{{'label.button.cancel' | translate}}</button>
<button class="btn btn-primary" ng-click="delete()">{{'label.button.confirm' | translate}}</button>
</div>
@ -608,6 +610,8 @@
<h3 class="bolder">{{'label.heading.confirm' | translate}}</h3>
</div>
<div class="modal-body">
<api-validate></api-validate>
<br>
<button class="btn btn-warning" ng-click="cancel()">{{'label.button.cancel' | translate}}</button>
<button class="btn btn-primary" ng-click="delete()">{{'label.button.confirm' | translate}}</button>
</div>

View File

@ -11,6 +11,8 @@
<h3 class="bolder">{{'label.heading.delete' | translate}}</h3>
</div>
<div class="modal-body ">
<api-validate></api-validate>
<br>
<button class="btn btn-warning" ng-click="cancel()">{{'label.button.cancel' | translate}}</button>
<button class="btn btn-primary" ng-click="delete()">{{'label.button.confirm' | translate}}</button>
</div>

View File

@ -11,6 +11,8 @@
<h3 class="bolder">{{'label.heading.delete' | translate}}</h3>
</div>
<div class="modal-body">
<api-validate></api-validate>
<br>
<button class="btn btn-warning" ng-click="cancel()">{{'label.button.cancel' | translate}}</button>
<button class="btn btn-primary" ng-click="delete()">{{'label.button.confirm' | translate}}</button>
</div>

View File

@ -47,12 +47,12 @@
<div ng-repeat="currency in selectedCurrOptions">
<input disabled="" class="form-control input-xxlarge" placeholder={{currency.displayLabel}}
type="text"/>&nbsp;&nbsp;<a ng-click='deleteCur(currency.code)'><i class="icon-remove"></i></a>
type="text"/>&nbsp;&nbsp;<a ng-click='deleteCur(currency.code)' has-permission='UPDATE_CURRENCY'><i class="icon-remove"></i></a>
</div>
<div class="offset5">
<button id="cancel" type="reset" ng-click="cancel()" class="btn">{{'label.button.cancel' | translate}}
</button>
<button id="save" type="submit" ng-click="submit()" class="btn btn-primary">{{'label.button.save' | translate}}
<button id="save" type="submit" ng-click="submit()" has-permission='UPDATE_CURRENCY' class="btn btn-primary">{{'label.button.save' | translate}}
</button>
</div>
</div>

View File

@ -13,6 +13,8 @@
<h3 class="bolder">{{'label.heading.activateholiday' | translate}}</h3>
</div>
<div class="modal-body">
<api-validate></api-validate>
<br>
<button class="btn btn-warning" ng-click="cancel()">{{'label.button.cancel' | translate}}</button>
<button class="btn btn-primary" ng-click="activate()">{{'label.button.confirm' | translate}}</button>
</div>
@ -22,6 +24,8 @@
<h3 class="bolder">{{'label.heading.deleteholiday' | translate}}</h3>
</div>
<div class="modal-body">
<api-validate></api-validate>
<br>
<button class="btn btn-warning" ng-click="cancel()">{{'label.button.cancel' | translate}}</button>
<button class="btn btn-primary" ng-click="activate()">{{'label.button.confirm' | translate}}</button>
</div>

View File

@ -30,6 +30,8 @@
<h3 class="bolder">{{'label.heading.delete' | translate}}</h3>
</div>
<div class="modal-body ">
<api-validate></api-validate>
<br>
<button class="btn btn-warning" ng-click="cancel()">{{'label.button.cancel' | translate}}</button>
<button class="btn btn-primary" ng-click="delete()">{{'label.button.confirm' | translate}}</button>
</div>

View File

@ -22,6 +22,8 @@
<h3 class="bolder">{{'label.heading.delete' | translate}}</h3>
</div>
<div class="modal-body ">
<api-validate></api-validate>
<br>
<button class="btn btn-warning" ng-click="cancel()">{{'label.button.cancel' | translate}}</button>
<button class="btn btn-primary" ng-click="delete()">{{'label.button.confirm' | translate}}</button>
</div>

View File

@ -65,6 +65,8 @@
<h3 class="bolder">{{'label.heading.delete' | translate}}</h3>
</div>
<div class="modal-body ">
<api-validate></api-validate>
<br>
<button class="btn btn-warning" ng-click="cancel()">{{'label.button.cancel' | translate}}</button>
<button class="btn btn-primary" ng-click="delete()">{{'label.button.confirm' | translate}}</button>
</div>
@ -74,6 +76,8 @@
<h3 class="bolder">{{'label.heading.approve' | translate}}</h3>
</div>
<div class="modal-body ">
<api-validate></api-validate>
<br>
<button class="btn btn-warning" ng-click="cancel()">{{'label.button.cancel' | translate}}</button>
<button class="btn btn-primary" ng-click="approve()">{{'label.button.confirm' | translate}}</button>
</div>

View File

@ -13,6 +13,8 @@
<h3 class="bolder">{{'label.heading.delete' | translate}}</h3>
</div>
<div class="modal-body ">
<api-validate></api-validate>
<br>
<button class="btn btn-warning" ng-click="cancel()">{{'label.button.cancel' | translate}}</button>
<button class="btn btn-primary" ng-click="delete()">{{'label.button.confirm' | translate}}</button>
</div>
@ -22,6 +24,8 @@
<h3 class="bolder">{{'label.heading.delete' | translate}}</h3>
</div>
<div class="modal-body ">
<api-validate></api-validate>
<br>
<button class="btn btn-warning" ng-click="cancel()">{{'label.button.cancel' | translate}}</button>
<button class="btn btn-primary" ng-click="delete()">{{'label.button.confirm' | translate}}</button>
</div>

View File

@ -23,6 +23,8 @@
<h3 class="bolder">{{'label.heading.delete' | translate}}</h3>
</div>
<div class="modal-body ">
<api-validate></api-validate>
<br>
<button class="btn btn-warning" ng-click="cancel()">{{'label.button.cancel' | translate}}</button>
<button class="btn btn-primary" ng-click="delete()">{{'label.button.confirm' | translate}}</button>
</div>

View File

@ -13,7 +13,9 @@
<div class="modal-header silver">
<h3 class="bolder">{{'label.heading.delete' | translate}}</h3>
</div>
<div class="modal-body ">
<div class="modal-body">
<api-validate></api-validate>
<br>
<button class="btn btn-warning" ng-click="cancel()">{{'label.button.cancel' | translate}}</button>
<button class="btn btn-primary" ng-click="delete()">{{'label.button.confirm' | translate}}</button>
</div>

View File

@ -20,6 +20,8 @@
<h3 class="bolder">{{'label.heading.delete' | translate}}</h3>
</div>
<div class="modal-body ">
<api-validate></api-validate>
<br>
<button class="btn btn-warning" ng-click="cancel()">{{'label.button.cancel' | translate}}</button>
<button class="btn btn-primary" ng-click="delete()">{{'label.button.confirm' | translate}}</button>
</div>

View File

@ -87,6 +87,8 @@
<h3 class="bolder">{{'label.heading.delete' | translate}}</h3>
</div>
<div class="modal-body">
<api-validate></api-validate>
<br>
<button class="btn btn-warning" ng-click="cancel()">{{'label.button.cancel' | translate}}</button>
<button class="btn btn-primary" ng-click="delete()">{{'label.button.confirm' | translate}}</button>
</div>
@ -96,6 +98,8 @@
<h3 class="bolder">{{'label.heading.approve' | translate}}</h3>
</div>
<div class="modal-body">
<api-validate></api-validate>
<br>
<button class="btn btn-warning" ng-click="cancel()">{{'label.button.cancel' | translate}}</button>
<button class="btn btn-primary" ng-click="approve()">{{'label.button.confirm' | translate}}</button>
</div>
@ -151,6 +155,8 @@
translate}}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</h3>
</div>
<div class="modal-body modal-big">
<api-validate></api-validate>
<br>
<input type="text" datepicker-pop="dd MMMM yyyy" ng-model="date.actDate" is-open="opened" min="restrictDate"
max="restrictDate"/>
</div>
@ -214,6 +220,8 @@
<h3 class="bolder">{{'label.heading.approve' | translate}}</h3>
</div>
<div class="modal-body">
<api-validate></api-validate>
<br>
<button class="btn btn-warning" ng-click="cancel()">{{'label.button.cancel' | translate}}</button>
<button class="btn btn-primary" ng-click="approve()">{{'label.button.confirm' | translate}}</button>
</div>

View File

@ -18,6 +18,8 @@
<h3 class="bolder">{{'label.heading.delete' | translate}}</h3>
</div>
<div class="modal-body ">
<api-validate></api-validate>
<br>
<button class="btn btn-warning" ng-click="cancel()">{{'label.button.cancel' | translate}}</button>
<button class="btn btn-primary" ng-click="delete()">{{'label.button.confirm' | translate}}</button>
</div>