wip static
This commit is contained in:
parent
f25068075c
commit
53174f31b4
24 changed files with 2100 additions and 0 deletions
26
static/views/users.html
Normal file
26
static/views/users.html
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<ul>
|
||||
<li ng-repeat="user in users">
|
||||
<span ng-if="!user.edit" ng-bind="user.username"></span>
|
||||
<button type="button" class="btn btn-sm btn-primary" ng-click="editUser()" ng-if="!user.edit">
|
||||
<span class="glyphicon glyphicon-edit" aria-hidden="true"></span>
|
||||
</button>
|
||||
<button type="button" class="btn btn-sm btn-danger" ng-click="delUser()" ng-if="!user.edit">
|
||||
<span class="glyphicon glyphicon-remove" aria-hidden="true"></span>
|
||||
</button>
|
||||
<form ng-if="user.edit" ng-submit="saveUser()">
|
||||
<input ng-model="user.username">
|
||||
<input ng-model="user.password" ng-if="user.editpass">
|
||||
<button type="button" class="btn btn-sm btn-primary" ng-click="editUserPass()" ng-if="!user.editpass">
|
||||
<span class="glyphicon glyphicon-edit" aria-hidden="true"></span>
|
||||
</button>
|
||||
<button type="submit" class="btn btn-sm btn-success">
|
||||
<span class="glyphicon glyphicon-check" aria-hidden="true"></span>
|
||||
</button>
|
||||
</form>
|
||||
</li>
|
||||
<li>
|
||||
<button type="button" class="btn btn-sm btn-dark" ng-click="newUser()">
|
||||
<span class="glyphicon glyphicon-plus" aria-hidden="true"></span>
|
||||
</button>
|
||||
</li>
|
||||
</ul>
|
||||
Loading…
Add table
Add a link
Reference in a new issue