group-members.html 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <div class="col-sm-9 col-md-10 col-sm-push-3 col-md-push-2">
  2. <ol class="breadcrumb">
  3. <li><a href="#/realms/{{realm.realm}}/groups">{{:: 'groups' | translate}}</a></li>
  4. <li>{{group.name}}</li>
  5. </ol>
  6. <kc-tabs-group></kc-tabs-group>
  7. <table class="table table-striped table-bordered">
  8. <caption data-ng-show="users" class="hidden">{{:: 'table-of-group-members' | translate}}</caption>
  9. <thead>
  10. <tr>
  11. <tr data-ng-show="searchLoaded && users.length > 0">
  12. <th>{{:: 'username' | translate}}</th>
  13. <th>{{:: 'last-name' | translate}}</th>
  14. <th>{{:: 'first-name' | translate}}</th>
  15. <th>{{:: 'email' | translate}}</th>
  16. <th></th>
  17. </tr>
  18. </tr>
  19. </thead>
  20. <tfoot data-ng-show="users && (users.length >= query.max || query.first > 0)">
  21. <tr>
  22. <td colspan="7">
  23. <div class="table-nav">
  24. <button data-ng-click="firstPage()" class="first" ng-disabled="query.first == 0">{{:: 'first-page' | translate}}</button>
  25. <button data-ng-click="previousPage()" class="prev" ng-disabled="query.first == 0">{{:: 'previous-page' | translate}}</button>
  26. <button data-ng-click="nextPage()" class="next" ng-disabled="users.length < query.max">{{:: 'next-page' | translate}}</button>
  27. </div>
  28. </td>
  29. </tr>
  30. </tfoot>
  31. <tbody>
  32. <tr ng-repeat="user in users">
  33. <td><a href="#/realms/{{realm.realm}}/users/{{user.id}}">{{user.username}}</a></td>
  34. <td>{{user.lastName}}</td>
  35. <td>{{user.firstName}}</td>
  36. <td>{{user.email}}</td>
  37. <td class="kc-action-cell" kc-open="/realms/{{realm.realm}}/users/{{user.id}}">{{:: 'edit' | translate}}</td>
  38. </tr>
  39. <tr data-ng-show="!users || users.length == 0">
  40. <td class="text-muted" data-ng-show="searchLoaded && users.length == 0 && lastSearch != null">{{:: 'no-group-members' | translate}}</td>
  41. <td class="text-muted" data-ng-show="searchLoaded && users.length == 0 && lastSearch == null">{{:: 'no-group-members' | translate}}</td>
  42. </tr>
  43. </tbody>
  44. </table>
  45. </div>
  46. <kc-menu></kc-menu>