1
0
mirror of https://github.com/bitwarden/web synced 2026-01-07 11:03:16 +00:00

Manage subvault users

This commit is contained in:
Kyle Spearrin
2017-04-03 12:26:43 -04:00
parent e00f033ffd
commit a81572914a
5 changed files with 129 additions and 4 deletions

View File

@@ -0,0 +1,51 @@
<div class="modal-header">
<button type="button" class="close" ng-click="close()" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title"><i class="fa fa-users"></i> User Access <small>{{subvault.name}}</small></h4>
</div>
<div class="modal-body">
<div ng-show="loading && !users.length">
Loading...
</div>
<div ng-show="!loading && !users.length">
<p>No users.</p>
</div>
<div class="table-responsive" ng-show="users.length">
<table class="table table-striped table-hover table-vmiddle">
<tbody>
<tr ng-repeat="user in users | orderBy: ['email']">
<td style="width: 40px;">
<button type="button" class="btn btn-link btn-table" uib-tooltip="Remove User"
ng-click="remove(user)">
<i class="fa fa-lg fa-remove"></i>
</button>
</td>
<td style="width: 45px;">
<img src="//www.gravatar.com/avatar/{{user.email | gravatar}}.jpg?s=45&d=mm"
class="img-circle" alt="User Image">
</td>
<td>
<a href="javascript:void(0)" ng-click="edit(user.id)">{{user.email}}</a>
<div ng-if="user.name"><small class="text-muted">{{user.name}}</small></div>
</td>
<td style="width: 40px;" align="center">
<i class="fa fa-pencil-square-o" ng-show="!user.readOnly" uib-tooltip="Can Edit"></i>
</td>
<td style="width: 100px;">
{{user.type | enumName: 'OrgUserType'}}
</td>
<td style="width: 120px;">
<span class="label {{user.status | enumLabelClass: 'OrgUserStatus'}}">
{{user.status | enumName: 'OrgUserStatus'}}
</span>
</td>
</tr>
</tbody>
</table>
</div>
<h4>Add User</h4>
<p>Coming soon...</p>
<p>Navigate to a specific user from the "people" page to associate them to a subvault.</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default btn-flat" ng-click="close()">Close</button>
</div>