Add ability to add new users to the permissions list and remove existing users

This commit is contained in:
Joseph Schorr 2013-09-28 01:23:00 -04:00
parent 038e9afc97
commit 7d44326618
4 changed files with 131 additions and 5 deletions

View file

@ -19,6 +19,7 @@
<tr>
<td>User</td>
<td>Permissions</td>
<td></td>
</tr>
</thead>
@ -34,6 +35,18 @@
<button type="button" class="btn btn-default" ng-click="setRole(username, 'admin')" ng-class="{read: '', write: '', admin: 'active'}[permission.role]">Admin</button>
</div>
</td>
<td>
<span class="delete-ui" tabindex="0" title="Delete Permission">
<span class="delete-ui-button" ng-click="deleteRole(username)"><button class="btn btn-danger">Delete</button></span>
<i class="icon-remove"></i>
</span>
</td>
</tr>
<tr>
<td colspan="2">
<input id="userSearch" class="form-control" placeholder="Add new user...">
</td>
</tr>
</table>
</div>