group-attributes.html 1.8 KB

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