blob: 9c80da67eda092edd11bd04bc37e5e186f495edc [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>
AppaRao Pulia83cd052019-01-07 23:25:43 +05306 <div class="table row column user-list__tbl" ng-show="users.length != 0">
AppaRao Puli28711a62018-10-17 16:07:55 +05307 <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">
AppaRao Pulia83cd052019-01-07 23:25:43 +053023 <button type="button" class="btn-edit inline" ng-disabled="isUserSelected" ng-click="setSelectedUser(user)">Edit</button>
24 <button type="button" class="btn-delete inline" ng-disabled="isUserSelected" ng-click="deleteUser(user.UserName)">Delete</button>
AppaRao Puli28711a62018-10-17 16:07:55 +053025 </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">
beccabroekedf1ab42019-02-15 16:26:38 -060036 <h2 class="inline">User account settings</h2>
AppaRao Puli28711a62018-10-17 16:07:55 +053037 </div>
38 <div class='col-sm-12'>
AppaRao Pulia83cd052019-01-07 23:25:43 +053039 <label class="col-md-1 control-label" for="user-manage__username">UserName</label>
AppaRao Puli28711a62018-10-17 16:07:55 +053040 <div class="col-md-3">
AppaRao Pulia83cd052019-01-07 23:25:43 +053041 <input type="text" name="UserName" id="user-manage__username" ng-model="selectedUser.UserName" />
AppaRao Puli28711a62018-10-17 16:07:55 +053042 </div>
Gunnar Mills5f0b7762018-09-25 14:10:45 -050043 </div>
AppaRao Puli28711a62018-10-17 16:07:55 +053044 <div class='col-sm-12 inline'>
AppaRao Pulia83cd052019-01-07 23:25:43 +053045 <label class="col-md-1 control-label" for="user-manage__passwd">Password</label>
AppaRao Puli28711a62018-10-17 16:07:55 +053046 <div class="col-md-3 user-manage__input-wrapper inline">
AppaRao Pulia83cd052019-01-07 23:25:43 +053047 <input type="{{showpassword ? 'text' : 'password'}}" class="user-manage__new-password inline" name="Password" id="user-manage__passwd" 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'>
AppaRao Pulia83cd052019-01-07 23:25:43 +053055 <label class="col-md-1 control-label" for="user-manage__verifypasswd">Retype Password</label>
AppaRao Puli28711a62018-10-17 16:07:55 +053056 <div class="col-md-3 user-manage__input-wrapper inline">
AppaRao Pulia83cd052019-01-07 23:25:43 +053057 <input type="{{showpasswordVerify ? 'text' : 'password'}}" class="user-manage__verify-password inline" name="VerifyPassword" id="user-manage__verifypasswd" 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'>
AppaRao Pulia83cd052019-01-07 23:25:43 +053065 <label class="col-md-1 control-label" for="user-manage__role">Role</label>
AppaRao Puli28711a62018-10-17 16:07:55 +053066 <div class="col-md-3 user-manage__input-wrapper inline">
AppaRao Pulia83cd052019-01-07 23:25:43 +053067 <select ng-model="selectedUser.RoleId" id="user-manage__role" class="inline">
AppaRao Puli28711a62018-10-17 16:07:55 +053068 <option ng-repeat="role in roles" class="inline">{{role}}</option>
69 </select>
70 </div>
71 </div>
72 <div class='col-sm-12'>
AppaRao Pulia83cd052019-01-07 23:25:43 +053073 <label class="col-md-1 control-label" for="user-manage__enabled">Enabled</label>
AppaRao Puli28711a62018-10-17 16:07:55 +053074 <div class="col-md-3 user-manage__input-wrapper inline">
75 <label class="control-check">
AppaRao Pulia83cd052019-01-07 23:25:43 +053076 <input type="checkbox" name="Enabled" id="user-manage__enabled" ng-model="selectedUser.Enabled"/>
AppaRao Puli28711a62018-10-17 16:07:55 +053077 <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>