blob: d37c5e1e22dabd8b31f74ba37f316e4f3f47a5e1 [file] [log] [blame]
AppaRao Puli28711a62018-10-17 16:07:55 +05301<loader loading="loading"></loader>
Iftekharul Islamcd789502017-04-19 14:37:55 -05002<div id="user-accounts">
Gunnar Mills5f0b7762018-09-25 14:10:45 -05003 <div class="row column">
AppaRao Puli28711a62018-10-17 16:07:55 +05304 <h1>User account information</h1>
5 </div>
6 <div class="table row column" ng-show="users.length != 0">
7 <div class="table__head">
8 <div class="table__row">
9 <div class="table__cell"> Username </div>
10 <div class="table__cell"> Enabled </div>
11 <div class="table__cell"> Role </div>
12 <div class="table__cell"> Locked </div>
13 <div class="table__cell"> Action </div>
14 </div>
15 </div>
16 <div class="table__body">
17 <div class="table__row" ng-repeat="user in users">
18 <div class="table__cell"> {{user.UserName}} </div>
19 <div class="table__cell"> {{user.Enabled}} </div>
20 <div class="table__cell"> {{user.RoleId}} </div>
21 <div class="table__cell"> {{user.Locked}} </div>
22 <div class="table__cell">
23 <button type="button" class="btn-primary inline" ng-disabled="isUserSelected" ng-click="setSelectedUser(user)">Edit</button>
24 <button type="button" class="btn-primary inline" ng-disabled="isUserSelected" ng-click="deleteUser(user.UserName)">Delete</button>
25 </div>
26 </div>
Gunnar Mills5f0b7762018-09-25 14:10:45 -050027 </div>
28 </div>
AppaRao Puli28711a62018-10-17 16:07:55 +053029 <div class="table row column" ng-show="users.length == 0">
30 <span>No users exist in system</span>
31 </div>
32
33 <form role="form" class="user-manage__form">
34 <section class="row column" aria-label="user manage form">
35 <div class="column small-12 page-header">
36 <h2 class="inline h4">User account settings</h2>
37 </div>
38 <div class='col-sm-12'>
39 <label class="col-md-1 control-label">UserName</label>
40 <div class="col-md-3">
41 <input type="text" class="form-control" name="UserName" ng-model="selectedUser.UserName" />
42 </div>
Gunnar Mills5f0b7762018-09-25 14:10:45 -050043 </div>
AppaRao Puli28711a62018-10-17 16:07:55 +053044 <div class='col-sm-12 inline'>
45 <label class="col-md-1 control-label">Password</label>
46 <div class="col-md-3 user-manage__input-wrapper inline">
47 <input type="{{showpassword ? 'text' : 'password'}}" class="form-control user-manage__new-password inline" name="Password" ng-model="selectedUser.Password" autocomplete="off"/>
Gunnar Mills5f0b7762018-09-25 14:10:45 -050048 <button ng-model="showpassword" ng-click="togglePassword = !togglePassword; showpassword = !showpassword;" class="password-toggle">
49 <span ng-hide="togglePassword">Show</span>
50 <span ng-show="togglePassword">Hide</span>
51 </button>
52 </div>
53 </div>
AppaRao Puli28711a62018-10-17 16:07:55 +053054 <div class='col-sm-12'>
55 <label class="col-md-1 control-label">Retype Password</label>
56 <div class="col-md-3 user-manage__input-wrapper inline">
57 <input type="{{showpasswordVerify ? 'text' : 'password'}}" class="form-control user-manage__verify-password inline" name="VerifyPassword" ng-model="selectedUser.VerifyPassword" autocomplete="off">
Gunnar Mills5f0b7762018-09-25 14:10:45 -050058 <button ng-model="showpasswordVerify" ng-click="toggleVerify = !toggleVerify; showpasswordVerify = !showpasswordVerify;" class="password-toggle">
59 <span ng-hide="toggleVerify">Show</span>
60 <span ng-show="toggleVerify">Hide</span>
61 </button>
62 </div>
63 </div>
AppaRao Puli28711a62018-10-17 16:07:55 +053064 <div class='col-sm-12'>
65 <label class="col-md-1 control-label">Role</label>
66 <div class="col-md-3 user-manage__input-wrapper inline">
67 <select ng-model="selectedUser.RoleId" class="form-control inline">
68 <option ng-repeat="role in roles" class="inline">{{role}}</option>
69 </select>
70 </div>
71 </div>
72 <div class='col-sm-12'>
73 <label class="col-md-1 control-label">Enabled</label>
74 <div class="col-md-3 user-manage__input-wrapper inline">
75 <label class="control-check">
76 <input type="checkbox" name="Enabled" ng-model="selectedUser.Enabled"/>
77 <span class="control__indicator"></span>
78 </label>
79 </div>
80 </div>
81 <div class="user-manage__submit-wrapper">
82 <button type="button" class="btn-primary inline" ng-if="!isUserSelected" ng-click="createNewUser()">Create User</button>
83 <button type="button" class="btn-primary inline" ng-if="isUserSelected" ng-click="updateUserInfo()">Save</button>
84 <button type="button" class="btn-primary inline" ng-if="isUserSelected" ng-click="cancel()">Cancel</button>
85 </div>
86 </section>
87 <section class="row column">
88 <div class='col-sm-12'>
89 <p ng-class="'user-manage__' + state" role="alert">
90 {{outMsg}}
91 </p>
Gunnar Mills5f0b7762018-09-25 14:10:45 -050092 </div>
AppaRao Puli28711a62018-10-17 16:07:55 +053093 </section>
94 </form>
Gunnar Mills6b97dde2018-03-14 17:04:58 -050095</div>