-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
3147: (Low Priority) Chore: minor tweaks to ui standards r=jniles a=sfount This commit updates a few small UI issues on the cashbox management module. It also cleans up client code failing lint. Closes #3122 Co-authored-by: Steven Fountain <[email protected]>
- Loading branch information
Showing
6 changed files
with
61 additions
and
57 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
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
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,33 +1,32 @@ | ||
angular.module('bhima.routes') | ||
.config(['$stateProvider', function ($stateProvider) { | ||
$stateProvider | ||
.state('cashboxes', { | ||
abstract : true, | ||
url : '/cashboxes', | ||
controller : 'CashboxController as CashCtrl', | ||
templateUrl : 'modules/cash/cashboxes/cashboxes.html', | ||
params : { | ||
label : null, | ||
}, | ||
}) | ||
.config(['$stateProvider', configureCashBoxRoutes]); | ||
|
||
.state('cashboxes.list', { | ||
url : '', | ||
templateUrl : 'modules/cash/cashboxes/cashboxes.list.html', | ||
}) | ||
|
||
.state('cashboxes.create', { | ||
url : '/create', | ||
templateUrl : 'modules/cash/cashboxes/update/add.html', | ||
controller : 'CashboxUpdateController as UpdateCtrl', | ||
}) | ||
|
||
.state('cashboxes.edit', { | ||
url : '/:uuid/edit', | ||
params : { | ||
id : { squash: true, value: null }, | ||
}, | ||
templateUrl : 'modules/cash/cashboxes/update/edit.html', | ||
controller : 'CashboxUpdateController as UpdateCtrl', | ||
}); | ||
}]); | ||
function configureCashBoxRoutes($stateProvider) { | ||
$stateProvider | ||
.state('cashboxes', { | ||
abstract : true, | ||
url : '/cashboxes', | ||
controller : 'CashboxController as CashCtrl', | ||
templateUrl : 'modules/cash/cashboxes/cashboxes.html', | ||
params : { | ||
label : null, | ||
}, | ||
}) | ||
.state('cashboxes.list', { | ||
url : '', | ||
templateUrl : 'modules/cash/cashboxes/cashboxes.list.html', | ||
}) | ||
.state('cashboxes.create', { | ||
url : '/create', | ||
templateUrl : 'modules/cash/cashboxes/update/add.html', | ||
controller : 'CashboxUpdateController as UpdateCtrl', | ||
}) | ||
.state('cashboxes.edit', { | ||
url : '/:uuid/edit', | ||
params : { | ||
id : { squash : true, value : null }, | ||
}, | ||
templateUrl : 'modules/cash/cashboxes/update/edit.html', | ||
controller : 'CashboxUpdateController as UpdateCtrl', | ||
}); | ||
} |
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
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
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