client-scope-mappings.html 8.0 KB

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