-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit hooks up the "add a cashbox" to the correct state. Closes #923.
- Loading branch information
Showing
2 changed files
with
18 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,45 @@ | ||
angular.module('bhima.routes') | ||
.config(['$stateProvider', function ($stateProvider) { | ||
|
||
$stateProvider | ||
.state('cashboxes', { | ||
abstract : true, | ||
url : '/cashboxes', | ||
controller : 'CashboxController as CashCtrl', | ||
.state('cashboxes', { | ||
abstract : true, | ||
url : '/cashboxes', | ||
controller : 'CashboxController as CashCtrl', | ||
templateUrl : 'partials/cash/cashboxes/cashboxes.html' | ||
}) | ||
|
||
.state('cashboxes.list', { | ||
url : '', | ||
.state('cashboxes.list', { | ||
url : '', | ||
templateUrl : 'partials/cash/cashboxes/cashboxes.list.html' | ||
}) | ||
|
||
.state('cashboxes.create', { | ||
.state('cashboxes.create', { | ||
url : '/create', | ||
templateUrl : 'partials/cash/cashboxes/update/add.html', | ||
templateUrl : 'partials/cash/cashboxes/update/add.html', | ||
controller : 'CashboxUpdateController as UpdateCtrl' | ||
}) | ||
|
||
.state('cashboxes.edit', { | ||
url : '/:uuid/edit', | ||
params : { | ||
url : '/:uuid/edit', | ||
params : { | ||
id : { squash : true, value : null } | ||
}, | ||
}, | ||
templateUrl : 'partials/cash/cashboxes/update/edit.html', | ||
controller : 'CashboxUpdateController as UpdateCtrl' | ||
}); | ||
|
||
}]); | ||
|
||
function addModal($modal) { | ||
$modal.open({ | ||
function addModal($modal) { | ||
$modal.open({ | ||
keyboard : false, | ||
backdrop : 'static', | ||
templateUrl : 'partials/cash/cashboxes/update/add.modal.html', | ||
backdrop : 'static', | ||
templateUrl : 'partials/cash/cashboxes/update/add.modal.html', | ||
controller : 'CashboxUpdateController as UpdateCtrl' | ||
}); | ||
} | ||
|
||
function closeModal($uibModalStack) { | ||
function closeModal($uibModalStack) { | ||
$uibModalStack.dismissAll(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters