realm-default-roles.html 5.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <div class="col-sm-9 col-md-10 col-sm-push-3 col-md-push-2">
  2. <h1>{{:: 'roles' | translate}}</h1>
  3. <ul class="nav nav-tabs">
  4. <li><a href="#/realms/{{realm.realm}}/roles">{{:: 'realm-roles' | translate}}</a></li>
  5. <li class="active"><a href="#/realms/{{realm.realm}}/default-roles">{{:: 'default-roles' | translate}}</a></li>
  6. </ul>
  7. <form class="form-horizontal" name="realmForm" novalidate kc-read-only="!access.manageRealm">
  8. <div class="form-group">
  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-4">
  13. <label class="control-label" for="available">{{:: 'available-roles' | translate}}</label>
  14. <kc-tooltip>{{:: 'default.available-roles.tooltip' | translate}}</kc-tooltip>
  15. <select id="available" class="form-control overflow-select" multiple size="5"
  16. ng-multiple="true"
  17. ng-model="selectedRealmRoles">
  18. <option ng-repeat="r in availableRealmRoles | orderBy:'name'" value="{{r}}" title="{{r.name}}">
  19. {{r.name}}
  20. </option>
  21. </select>
  22. <button ng-disabled="selectedRealmRoles.length == 0" class="btn btn-default" type="submit" ng-click="addRealmDefaultRole()">
  23. {{:: 'add-selected' | translate}} <i class="fa fa-angle-double-right"></i>
  24. </button>
  25. </div>
  26. <div class="col-md-4">
  27. <label class="control-label" for="assigned">{{:: 'realm-default-roles' | translate}}</label>
  28. <kc-tooltip>{{:: 'realm-default-roles.tooltip' | translate}}</kc-tooltip>
  29. <select id="assigned" class="form-control overflow-select" multiple size=5
  30. ng-multiple="true"
  31. ng-model="selectedRealmDefRoles">
  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="selectedRealmDefRoles.length == 0" class="btn btn-default" type="submit" ng-click="deleteRealmDefaultRole()">
  37. <i class="fa fa-angle-double-left"></i> {{:: 'remove-selected' | translate}}
  38. </button>
  39. </div>
  40. </div>
  41. </div>
  42. </div>
  43. <div class="form-group">
  44. <label class="col-md-2 control-label" for="clients">{{:: 'client-roles' | translate}}</label>
  45. <div class="col-md-6">
  46. <input type="hidden" ui-select2="clientsUiSelect" id="clients" data-ng-model="selectedClient" data-ng-change="changeClient(selectedClient);" data-placeholder="{{:: 'authz-select-client' | translate}}...">
  47. </input>
  48. </div>
  49. <div class="col-md-10 col-md-push-2">
  50. <div class="row" data-ng-show="selectedClient">
  51. <div class="col-md-4">
  52. <label class="control-label" for="available-client">{{:: 'available-roles' | translate}}</label>
  53. <kc-tooltip>{{:: 'default.available-roles-client.tooltip' | translate}}</kc-tooltip>
  54. <select id="available-client" class="form-control overflow-select" multiple size="5"
  55. ng-multiple="true"
  56. ng-model="selectedClientRoles">
  57. <option ng-repeat="r in availableClientRoles | orderBy:'name'" value="{{r}}" title="{{r.name}}">
  58. {{r.name}}
  59. </option>
  60. </select>
  61. <button ng-disabled="selectedClientRoles.length == 0" class="btn btn-default" type="submit" ng-click="addClientDefaultRole()">
  62. {{:: 'add-selected' | translate}} <i class="fa fa-angle-double-right"></i>
  63. </button>
  64. </div>
  65. <div class="col-md-4">
  66. <label class="control-label" for="assigned-client">{{:: 'client-default-roles' | translate}}</label>
  67. <kc-tooltip>{{:: 'client-default-roles.tooltip' | translate}}</kc-tooltip>
  68. <select id="assigned-client" class="form-control overflow-select" multiple size=5
  69. ng-multiple="true"
  70. ng-model="selectedClientDefRoles">
  71. <option ng-repeat="r in clientMappings | orderBy:'name'" value="{{r}}" title="{{r.name}}">
  72. {{r.name}}
  73. </option>
  74. </select>
  75. <button ng-disabled="selectedClientDefRoles.length == 0" class="btn btn-default" type="submit" ng-click="rmClientDefaultRole()">
  76. <i class="fa fa-angle-double-left"></i> {{:: 'remove-selected' | translate}}
  77. </button>
  78. </div>
  79. </div>
  80. </div>
  81. </div>
  82. </form>
  83. </div>
  84. <kc-menu></kc-menu>