| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- <page-header model="ctrl.navModel"></page-header>
- <div class="page-container page-body">
- <div class="page-action-bar">
- <div class="gf-form gf-form--grow">
- <label class="gf-form-label">Search</label>
- <input type="text" class="gf-form-input max-width-20" 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()" />
- </div>
- <div class="page-action-bar__spacer"></div>
- <a class="btn btn-success" ng-click="ctrl.openUserGroupModal()">
- <i class="fa fa-plus"></i>
- Add Team
- </a>
- </div>
- <div class="admin-list-table">
- <table class="filter-table form-inline" ng-show="ctrl.userGroups.length > 0">
- <thead>
- <tr>
- <th>Name</th>
- <th>Members</th>
- <th></th>
- </tr>
- </thead>
- <tbody>
- <tr ng-repeat="userGroup in ctrl.userGroups">
- <td>
- <a href="org/user-groups/edit/{{userGroup.id}}">{{userGroup.name}}</a>
- </td>
- <td>#Count</td>
- <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>
- <em class="muted" ng-hide="ctrl.userGroups.length > 0">
- No User Groups found.
- </em>
- </div>
|