realm-role-users.html 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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}}/roles">{{:: 'roles' | translate}}</a></li>
  4. <li>{{role.name}}</li>
  5. </ol>
  6. <kc-tabs-role></kc-tabs-role>
  7. <table class="table table-striped table-bordered">
  8. <caption data-ng-show="users" class="hidden">{{:: 'table-of-role-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-role-members' | translate}}</td>
  41. <td class="text-muted" data-ng-show="searchLoaded && users.length == 0 && lastSearch == null">{{:: 'no-role-members' | translate}}</td>
  42. </tr>
  43. </tbody>
  44. </table>
  45. </div>
  46. <kc-menu></kc-menu>