This repository has been archived by the owner on Jan 17, 2024. It is now read-only.
forked from 18F/dol-whd-14c
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #151 from AppliedIS/feature-usermanagement
Added a simple user management page.
- Loading branch information
Showing
4 changed files
with
37 additions
and
0 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
10 changes: 10 additions & 0 deletions
10
DOL.WHD.Section14c.Web/src/modules/pages/userManagementPageController.js
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
'use strict'; | ||
|
||
module.exports = function(ngModule) { | ||
ngModule.controller('userManagementPageController', function($scope, stateService, $location) { | ||
'ngInject'; | ||
'use strict'; | ||
|
||
$scope.stateService = stateService; | ||
}); | ||
} |
21 changes: 21 additions & 0 deletions
21
DOL.WHD.Section14c.Web/src/modules/pages/userManagementPageTemplate.html
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 |
---|---|---|
@@ -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> |