2016-02-14 17:37:05 +01:00
|
|
|
<navbar icon="fa fa-fw fa-cogs" title="Admin" title-url="admin">
|
2017-02-08 14:20:07 +01:00
|
|
|
<a href="admin/users" class="navbar-page-btn">
|
|
|
|
|
<i class="icon-gf icon-gf-users"></i>
|
|
|
|
|
Users
|
|
|
|
|
</a>
|
2016-01-29 16:52:30 -05:00
|
|
|
</navbar>
|
2015-01-15 15:53:55 +01:00
|
|
|
|
2016-01-15 15:51:30 +01:00
|
|
|
<div class="page-container">
|
2017-02-08 14:20:07 +01:00
|
|
|
<div class="page-header">
|
|
|
|
|
<h1>Users</h1>
|
2016-02-14 17:37:05 +01:00
|
|
|
|
2017-02-08 14:20:07 +01:00
|
|
|
<a class="btn btn-success" href="admin/users/create">
|
|
|
|
|
<i class="fa fa-plus"></i>
|
|
|
|
|
Add new user
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="admin-list-table">
|
|
|
|
|
<table class="filter-table form-inline">
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>Id</th>
|
|
|
|
|
<th>Name</th>
|
|
|
|
|
<th>Login</th>
|
|
|
|
|
<th>Email</th>
|
|
|
|
|
<th style="white-space: nowrap">Grafana Admin</th>
|
|
|
|
|
<th></th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
<tr ng-repeat="user in ctrl.users">
|
|
|
|
|
<td>{{user.id}}</td>
|
|
|
|
|
<td>{{user.name}}</td>
|
|
|
|
|
<td>{{user.login}}</td>
|
|
|
|
|
<td>{{user.email}}</td>
|
|
|
|
|
<td>{{user.isAdmin}}</td>
|
|
|
|
|
<td class="text-right">
|
|
|
|
|
<a href="admin/users/edit/{{user.id}}" class="btn btn-inverse btn-small">
|
|
|
|
|
<i class="fa fa-edit"></i>
|
|
|
|
|
Edit
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
|
|
<a ng-click="ctrl.deleteUser(user)" class="btn btn-danger btn-small">
|
|
|
|
|
<i class="fa fa-remove"></i>
|
|
|
|
|
</a>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
2016-02-14 17:37:05 +01:00
|
|
|
|
2017-02-08 14:20:07 +01:00
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="admin-list-paging" ng-if="ctrl.showPaging">
|
|
|
|
|
<ol>
|
|
|
|
|
<li ng-repeat="page in ctrl.pages">
|
|
|
|
|
<button
|
|
|
|
|
class="btn btn-small"
|
|
|
|
|
ng-class="{'btn-secondary': page.current, 'btn-inverse': !page.current}"
|
|
|
|
|
ng-click="ctrl.navigateToPage(page)">{{page.page}}</button>
|
|
|
|
|
</li>
|
|
|
|
|
</ol>
|
|
|
|
|
</div>
|
2015-01-15 15:53:55 +01:00
|
|
|
</div>
|