user_groups.html 1.9 KB

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