user_groups.html 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <navbar model="ctrl.navModel"></navbar>
  2. <div class="page-container">
  3. <div class="page-header">
  4. <h1>User Groups</h1>
  5. <a class="btn btn-success" ng-click="ctrl.openUserGroupModal()">
  6. <i class="fa fa-plus"></i>
  7. Create User Group
  8. </a>
  9. </div>
  10. <div class="gf-form width-15 gf-form-group">
  11. <span style="position: relative;">
  12. <input type="text" class="gf-form-input" placeholder="Find User Group by name" tabindex="1" give-focus="true"
  13. ng-model="ctrl.query" ng-model-options="{ debounce: 500 }" spellcheck='false' ng-change="ctrl.get()" />
  14. </span>
  15. </div>
  16. <div class="admin-list-table">
  17. <table class="filter-table form-inline" ng-show="ctrl.userGroups.length > 0">
  18. <thead>
  19. <tr>
  20. <th>Name</th>
  21. <th>Members</th>
  22. <th></th>
  23. </tr>
  24. </thead>
  25. <tbody>
  26. <tr ng-repeat="userGroup in ctrl.userGroups">
  27. <td>
  28. <a href="org/user-groups/edit/{{userGroup.id}}">{{userGroup.name}}</a>
  29. </td>
  30. <td>#Count</td>
  31. <td class="text-right">
  32. <a href="org/user-groups/edit/{{userGroup.id}}" class="btn btn-inverse btn-small">
  33. <i class="fa fa-edit"></i>
  34. Edit
  35. </a>
  36. &nbsp;&nbsp;
  37. <a ng-click="ctrl.deleteUserGroup(userGroup)" class="btn btn-danger btn-small">
  38. <i class="fa fa-remove"></i>
  39. </a>
  40. </td>
  41. </tr>
  42. </tbody>
  43. </table>
  44. </div>
  45. <div class="admin-list-paging" ng-if="ctrl.showPaging">
  46. <ol>
  47. <li ng-repeat="page in ctrl.pages">
  48. <button
  49. class="btn btn-small"
  50. ng-class="{'btn-secondary': page.current, 'btn-inverse': !page.current}"
  51. ng-click="ctrl.navigateToPage(page)">{{page.page}}</button>
  52. </li>
  53. </ol>
  54. </div>
  55. <em class="muted" ng-hide="ctrl.userGroups.length > 0">
  56. No User Groups found.
  57. </em>
  58. </div>