client-role-attributes.html 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. <form class="form-horizontal" name="realmForm" novalidate kc-read-only="!client.access.configure">
  10. <table class="table table-striped table-bordered">
  11. <thead>
  12. <tr>
  13. <th>{{:: 'key' | translate}}</th>
  14. <th>{{:: 'value' | translate}}</th>
  15. <th>{{:: 'actions' | translate}}</th>
  16. </tr>
  17. </thead>
  18. <tbody>
  19. <tr ng-repeat="(key, value) in role.attributes | toOrderedMapSortedByKey">
  20. <td>{{key}}</td>
  21. <td><input ng-model="role.attributes[key]" class="form-control" type="text" name="{{key}}" id="attribute-{{key}}" /></td>
  22. <td class="kc-action-cell" data-ng-click="removeAttribute(key)">{{:: 'delete' | translate}}</td>
  23. </tr>
  24. <tr>
  25. <td><input ng-model="newAttribute.key" class="form-control" type="text" id="newAttributeKey" /></td>
  26. <td><input ng-model="newAttribute.value" class="form-control" type="text" id="newAttributeValue" /></td>
  27. <td class="kc-action-cell" data-ng-click="addAttribute()" data-ng-disabled="!newAttribute.key.length || !newAttribute.value.length">{{:: 'add' | translate}}</td>
  28. </tr>
  29. </tbody>
  30. </table>
  31. <div class="form-group" data-ng-show="client.access.configure">
  32. <div class="col-md-12">
  33. <button kc-save data-ng-disabled="!changed">{{:: 'save' | translate}}</button>
  34. <button kc-reset data-ng-disabled="!changed">{{:: 'cancel' | translate}}</button>
  35. </div>
  36. </div>
  37. </form>
  38. </div>
  39. <kc-menu></kc-menu>