client-scope-mappers.html 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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}}/client-scopes">{{:: 'client-scopes' | translate}}</a></li>
  4. <li>{{clientScope.name}}</li>
  5. </ol>
  6. <kc-tabs-client-scope></kc-tabs-client-scope>
  7. <table class="table table-striped table-bordered">
  8. <thead>
  9. <tr>
  10. <th class="kc-table-actions" colspan="6">
  11. <div class="form-inline">
  12. <div class="form-group">
  13. <div class="input-group">
  14. <input type="text" placeholder="{{:: 'search.placeholder' | translate}}" data-ng-model="search.name" class="form-control search" onkeyup="if(event.keyCode == 13){$(this).next('I').click();}">
  15. <div class="input-group-addon">
  16. <i class="fa fa-search" type="submit"></i>
  17. </div>
  18. </div>
  19. </div>
  20. <div class="pull-right" data-ng-show="access.manageClients">
  21. <a class="btn btn-default" href="#/create/client-scope/{{realm.realm}}/{{clientScope.id}}/mappers">{{:: 'create' | translate}}</a>
  22. <a class="btn btn-default" href="#/realms/{{realm.realm}}/client-scopes/{{clientScope.id}}/add-mappers">{{:: 'add-builtin' | translate}}</a>
  23. </div>
  24. </div>
  25. </th>
  26. </tr>
  27. <tr data-ng-hide="mappers.length == 0">
  28. <th>{{:: 'name' | translate}}</th>
  29. <th>{{:: 'category' | translate}}</th>
  30. <th>{{:: 'type' | translate}}</th>
  31. <th>{{:: 'priority-order' | translate}}</th>
  32. <th colspan="2">{{:: 'actions' | translate}}</th>
  33. </tr>
  34. </thead>
  35. <tbody>
  36. <tr ng-repeat="mapper in mappers | filter:search | orderBy:sortMappersByPriority">
  37. <td><a href="#/realms/{{realm.realm}}/client-scopes/{{clientScope.id}}/mappers/{{mapper.id}}">{{mapper.name}}</a></td>
  38. <td>{{mapperTypes[mapper.protocolMapper].category}}</td>
  39. <td>{{mapperTypes[mapper.protocolMapper].name}}</td>
  40. <td>{{mapperTypes[mapper.protocolMapper].priority}}</td>
  41. <td class="kc-action-cell" kc-open="/realms/{{realm.realm}}/client-scopes/{{clientScope.id}}/mappers/{{mapper.id}}">{{:: 'edit' | translate}}</td>
  42. <td class="kc-action-cell" data-ng-click="removeMapper(mapper)">{{:: 'delete' | translate}}</td>
  43. </tr>
  44. <tr data-ng-show="mappers.length == 0">
  45. <td>{{:: 'no-mappers-available' | translate}}</td>
  46. </tr>
  47. </tbody>
  48. </table>
  49. </div>
  50. <kc-menu></kc-menu>