group-role-mappings.html 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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' | translate}}</a></li>
  4. <li>{{group.name}}</li>
  5. </ol>
  6. <kc-tabs-group></kc-tabs-group>
  7. <form class="form-horizontal" name="realmForm" novalidate>
  8. <div class="form-group" kc-read-only="!group.access.manage">
  9. <label class="col-md-2 control-label" class="control-label">{{:: 'realm-roles' | translate}}</label>
  10. <div class="col-md-10">
  11. <div class="row">
  12. <div class="col-md-3">
  13. <label class="control-label" for="available">{{:: 'available-roles' | translate}}</label>
  14. <select id="available" class="form-control overflow-select" multiple size="5"
  15. ng-multiple="true"
  16. ng-model="selectedRealmRoles">
  17. <option ng-repeat="r in realmRoles | orderBy:'name'" value="{{r}}" title="{{r.name}}">
  18. {{r.name}}
  19. </option>
  20. </select>
  21. <button ng-disabled="selectedRealmRoles.length == 0" ng-disabled="c.length == 0" class="btn btn-default" type="submit" ng-click="addRealmRole()">
  22. {{:: 'add-selected' | translate}} <i class="fa fa-angle-right"></i>
  23. </button>
  24. <kc-tooltip>{{:: 'group.add-selected.tooltip' | translate}}</kc-tooltip>
  25. </div>
  26. <div class="col-md-3">
  27. <label class="control-label" for="assigned">{{:: 'assigned-roles' | translate}}</label>
  28. <kc-tooltip>{{:: 'group.assigned-roles.tooltip' | translate}}</kc-tooltip>
  29. <select id="assigned" class="form-control overflow-select" multiple size=5
  30. ng-multiple="true"
  31. ng-model="selectedRealmMappings">
  32. <option ng-repeat="r in realmMappings | orderBy:'name'" value="{{r}}" title="{{r.name}}">
  33. {{r.name}}
  34. </option>
  35. </select>
  36. <button ng-disabled="selectedRealmMappings.length == 0" class="btn btn-default" type="submit" ng-click="deleteRealmRole()">
  37. <i class="fa fa-angle-double-left"></i> {{:: 'remove-selected' | translate}}
  38. </button>
  39. </div>
  40. <div class="col-md-3">
  41. <label class="control-label" for="realm-composite">{{:: 'effective-roles' | translate}}</label>
  42. <kc-tooltip>{{:: 'group.effective-roles.tooltip' | translate}}</kc-tooltip>
  43. <select id="realm-composite" class="form-control overflow-select" multiple size=5
  44. disabled="true"
  45. ng-model="dummymodel">
  46. <option ng-repeat="r in realmComposite | orderBy:'name'" value="{{r}}" title="{{r.name}}">
  47. {{r.name}}
  48. </option>
  49. </select>
  50. </div>
  51. </div>
  52. </div>
  53. </div>
  54. <div class="form-group">
  55. <label class="col-md-2 control-label" for="clients">{{:: 'client-roles' | translate}}</label>
  56. <div class="col-md-6">
  57. <input type="hidden" ui-select2="clientsUiSelect" id="clients" data-ng-model="selectedClient" data-ng-change="changeClient(selectedClient);" data-placeholder="{{:: 'authz-select-client' | translate}}...">
  58. </input>
  59. </div>
  60. <div class="col-md-10 col-md-push-2">
  61. <div class="row" data-ng-show="selectedClient" >
  62. <div class="col-md-3">
  63. <label class="control-label" for="available-client">{{:: 'available-roles' | translate}}</label>
  64. <kc-tooltip>{{:: 'group.available-roles.tooltip' | translate}}</kc-tooltip>
  65. <select id="available-client" class="form-control overflow-select" multiple size="5"
  66. ng-multiple="true"
  67. ng-model="selectedClientRoles">
  68. <option ng-repeat="r in clientRoles | orderBy:'name'" value="{{r}}" title="{{r.name}}">
  69. {{r.name}}
  70. </option>
  71. </select>
  72. <button ng-disabled="selectedClientRoles.length == 0" class="btn btn-default" type="submit" ng-click="addClientRole()">
  73. {{:: 'add-selected' | translate}} <i class="fa fa-angle-double-right"></i>
  74. </button>
  75. </div>
  76. <div class="col-md-3">
  77. <label class="control-label" for="assigned-client">{{:: 'assigned-roles' | translate}}</label>
  78. <kc-tooltip>{{:: 'group.assigned-roles-client.tooltip' | translate}}</kc-tooltip>
  79. <select id="assigned-client" class="form-control overflow-select" multiple size=5
  80. ng-multiple="true"
  81. ng-model="selectedClientMappings">
  82. <option ng-repeat="r in clientMappings | orderBy:'name'" value="{{r}}" title="{{r.name}}">
  83. {{r.name}}
  84. </option>
  85. </select>
  86. <button ng-disabled="selectedClientMappings.length == 0" class="btn btn-default" type="submit" ng-click="deleteClientRole()">
  87. <i class="fa fa-angle-double-left"></i> {{:: 'remove-selected' | translate}}
  88. </button>
  89. </div>
  90. <div class="col-md-3">
  91. <label class="control-label" for="client-composite">{{:: 'effective-roles' | translate}}</label>
  92. <kc-tooltip>{{:: 'group.effective-roles-client.tooltip' | translate}}</kc-tooltip>
  93. <select id="client-composite" class="form-control overflow-select" multiple size=5
  94. disabled="true"
  95. ng-model="dummymodel">
  96. <option ng-repeat="r in clientComposite | orderBy:'name'" value="{{r}}" title="{{r.name}}">
  97. {{r.name}}
  98. </option>
  99. </select>
  100. </div>
  101. </div>
  102. </div>
  103. </div>
  104. </form>
  105. </div>
  106. <kc-menu></kc-menu>