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">
|
2017-06-06 00:47:25 +02:00
|
|
|
<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">
|
2017-06-23 20:55:53 +02:00
|
|
|
<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>
|
|
|
|
|
|
|
|
<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>
|
2017-06-23 20:55:53 +02:00
|
|
|
|
|
|
|
<em class="muted" ng-hide="ctrl.userGroups.length > 0">
|
|
|
|
No User Groups found.
|
|
|
|
</em>
|
2017-04-10 01:24:16 +02:00
|
|
|
</div>
|