Files
grafana/public/app/features/org/partials/user_groups.html

66 lines
2.0 KiB
HTML
Raw Normal View History

2017-12-01 10:27:05 +01:00
<page-header model="ctrl.navModel"></page-header>
2017-04-10 01:24:16 +02:00
2017-12-01 10:27:05 +01:00
<div class="page-container page-body">
<div class="page-action-bar">
2017-04-10 01:24:16 +02:00
2017-08-17 19:00:58 +02:00
<div class="gf-form width-15 gf-form-group">
<span style="position: relative;">
<input type="text" class="gf-form-input" placeholder="Find User Group by name" tabindex="1" give-focus="true"
ng-model="ctrl.query" ng-model-options="{ debounce: 500 }" spellcheck='false' ng-change="ctrl.get()" />
</span>
</div>
2017-12-01 10:27:05 +01:00
<div class="page-action-bar__spacer">
<a class="btn btn-success" ng-click="ctrl.openUserGroupModal()">
<i class="fa fa-plus"></i>
Create User Group
</a>
</div>
2017-04-10 01:24:16 +02:00
<div class="admin-list-table">
<table class="filter-table form-inline" ng-show="ctrl.userGroups.length > 0">
2017-04-10 01:24:16 +02:00
<thead>
<tr>
<th>Name</th>
2017-08-17 19:00:58 +02:00
<th>Members</th>
2017-04-10 01:24:16 +02:00
<th></th>
</tr>
</thead>
<tbody>
<tr ng-repeat="userGroup in ctrl.userGroups">
2017-08-17 19:00:58 +02:00
<td>
<a href="org/user-groups/edit/{{userGroup.id}}">{{userGroup.name}}</a>
</td>
<td>#Count</td>
2017-04-10 01:24:16 +02:00
<td class="text-right">
<a href="org/user-groups/edit/{{userGroup.id}}" class="btn btn-inverse btn-small">
<i class="fa fa-edit"></i>
Edit
</a>
&nbsp;&nbsp;
<a ng-click="ctrl.deleteUserGroup(userGroup)" class="btn btn-danger btn-small">
<i class="fa fa-remove"></i>
</a>
</td>
</tr>
</tbody>
</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>
<em class="muted" ng-hide="ctrl.userGroups.length > 0">
No User Groups found.
</em>
2017-04-10 01:24:16 +02:00
</div>