user_groups.html 1.8 KB

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