client-role-users.html 2.4 KB

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