client-mappers-add.html 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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}}/mappers">{{:: 'mappers' | translate}}</a></li>
  6. <li class="active">{{:: 'add-builtin-protocol-mappers' | translate}}</li>
  7. </ol>
  8. <h1>{{:: 'add-builtin-protocol-mapper' | translate}}</h1>
  9. <table class="table table-striped table-bordered">
  10. <thead>
  11. <tr>
  12. <th class="kc-table-actions" colspan="4">
  13. <div class="form-inline">
  14. <div class="form-group">
  15. <div class="input-group">
  16. <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();}">
  17. <div class="input-group-addon">
  18. <i class="fa fa-search" type="submit"></i>
  19. </div>
  20. </div>
  21. </div>
  22. </div>
  23. </th>
  24. </tr>
  25. <tr data-ng-hide="mappers.length == 0">
  26. <th>{{:: 'name' | translate}}</th>
  27. <th>{{:: 'category' | translate}}</th>
  28. <th>{{:: 'type' | translate}}</th>
  29. <th>{{:: 'add' | translate}}</th>
  30. </tr>
  31. </thead>
  32. <tbody>
  33. <tr ng-repeat="mapper in mappers | filter:search">
  34. <td>{{mapper.name}}</td>
  35. <td>{{mapperTypes[mapper.protocolMapper].category}}</td>
  36. <td>{{mapperTypes[mapper.protocolMapper].name}}</td>
  37. <td><input type="checkbox" ng-model="mapper.isChecked" id="{{mapper.protocolMapper}}"></td>
  38. </tr>
  39. <tr data-ng-show="mappers.length == 0">
  40. <td>{{:: 'no-mappers-available' | translate}}</td>
  41. </tr>
  42. </tbody>
  43. </table>
  44. <div data-ng-show="client.access.manage">
  45. <button class="btn btn-primary" data-ng-click="add()">{{:: 'add-selected' | translate}}</button>
  46. </div>
  47. </div>
  48. <kc-menu></kc-menu>