client-scope-scope-mappings.html 7.2 KB

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