Skip to content
This repository has been archived by the owner on Jan 17, 2024. It is now read-only.

Commit

Permalink
Merge pull request #151 from AppliedIS/feature-usermanagement
Browse files Browse the repository at this point in the history
Added a simple user management page.
  • Loading branch information
klinden committed Nov 17, 2016
2 parents b5bd926 + b1141de commit 39bfaaa
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 0 deletions.
5 changes: 5 additions & 0 deletions DOL.WHD.Section14c.Web/src/modules/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,11 @@ app.config(function($routeProvider, $compileProvider) {
template: require('./pages/adminDashboardTemplate.html'),
admin: true
})
.when('/admin/users', {
controller: 'userManagementPageController',
template: require('./pages/userManagementPageTemplate.html'),
admin: true
})
.when('/admin/:app_id', {
redirectTo: function(params){ return '/admin/' + params.app_id + '/section/summary'; }
})
Expand Down
1 change: 1 addition & 0 deletions DOL.WHD.Section14c.Web/src/modules/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ module.exports = function(ngModule) {
require('./changePasswordPageController')(ngModule);
require('./landingPageController')(ngModule);
require('./userLoginPageController')(ngModule);
require('./userManagementPageController')(ngModule);
require('./userRegistrationPageController')(ngModule);
require('./forgotPasswordPageController')(ngModule);
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
'use strict';

module.exports = function(ngModule) {
ngModule.controller('userManagementPageController', function($scope, stateService, $location) {
'ngInject';
'use strict';

$scope.stateService = stateService;
});
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<header role="header" class="dol-header-form">
<h1>Section 14(c) Certificate Application</h1>

<nav>
<ul>
<li><a href="">Dashboard</a></li>
<li><a href="" ng-click="vm.userClick()">{{ vm.stateService.user.email ? vm.stateService.user.email : "Username" }}</a></li>
<li><a href="" ng-click="vm.saveClick()">Sign Out</a></li>
</ul>
</nav>
</header>

<div class="usa-grid">
<h2 ng-if="stateService.hasClaim('UserManagement.CreateAccount') || stateService.hasClaim('UserManagement.GetAccounts')">User Management</h2>
<div ng-if="stateService.hasClaim('UserManagement.CreateAccount')">
<account-create-button></account-create-button>
</div>
<div ng-if="stateService.hasClaim('UserManagement.GetAccounts')">
<account-grid></account-grid>
</div>
</div>

0 comments on commit 39bfaaa

Please sign in to comment.