123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140 |
- <div class="col-sm-9 col-md-10 col-sm-push-3 col-md-push-2">
- <ol class="breadcrumb">
- <li><a href="#/realms/{{realm.realm}}/clients">{{:: 'clients' | translate}}</a></li>
- <li>{{client.clientId}}</li>
- </ol>
- <kc-tabs-client></kc-tabs-client>
- <form class="form-horizontal" name="realmForm" novalidate kc-read-only="!client.access.configure" data-ng-show="client.serviceAccountsEnabled">
- <h2>{{:: 'service-account' | translate}}</h2>
- <div class="form-group">
- <label class="col-md-2 control-label">{{:: 'service-account.user' | translate}}</label>
- <div class="col-md-6">
- <a class="form-control" ng-href="#/realms/{{realm.realm}}/users/{{user.id}}">{{user.username}}</a>
- </div>
- <kc-tooltip>{{:: 'service-account.user.tooltip' | translate}}</kc-tooltip>
- </div>
- <p class="subtitle"></p>
- <h2>{{:: 'service-account.roles' | translate}}</h2>
- <p class="subtitle"></p>
- <div class="form-group">
- <label class="col-md-2 control-label" class="control-label">{{:: 'realm-roles' | translate}}</label>
- <div class="col-md-10">
- <div class="row">
- <div class="col-md-3">
- <label class="control-label" for="available">{{:: 'available-roles' | translate}}</label>
- <kc-tooltip>{{:: 'service-account.available-roles.tooltip' | translate}}</kc-tooltip>
- <select id="available" class="form-control overflow-select" multiple size="5"
- ng-multiple="true"
- ng-model="selectedRealmRoles">
- <option ng-repeat="r in realmRoles | orderBy:'name'"
- value="{{r}}" title="{{r.name}}">
- {{r.name}}
- </option>
- </select>
- <button ng-disabled="selectedRealmRoles.length == 0" class="btn btn-default" type="submit" ng-click="addRealmRole()">
- {{:: 'add-selected' | translate}} <i class="fa fa-angle-double-right"></i>
- </button>
- </div>
- <div class="col-md-3">
- <label class="control-label" for="assigned">{{:: 'assigned-roles' | translate}}</label>
- <kc-tooltip>{{:: 'service-account.assigned-roles.tooltip' | translate}}</kc-tooltip>
- <select id="assigned" class="form-control overflow-select" multiple size=5
- ng-multiple="true"
- ng-model="selectedRealmMappings">
- <option ng-repeat="r in realmMappings | orderBy:'name'"
- value="{{r}}" title="{{r.name}}">
- {{r.name}}
- </option>
- </select>
- <button ng-disabled="selectedRealmMappings.length == 0" class="btn btn-default" type="submit" ng-click="deleteRealmRole()">
- <i class="fa fa-angle-double-left"></i> {{:: 'remove-selected' | translate}}
- </button>
- </div>
- <div class="col-md-3">
- <label class="control-label" for="realm-composite">{{:: 'effective-roles' | translate}} </label>
- <kc-tooltip>{{:: 'realm.effective-roles.tooltip' | translate}}</kc-tooltip>
- <select id="realm-composite" class="form-control overflow-select" multiple size=5
- disabled="true"
- ng-model="dummymodel">
- <option ng-repeat="r in realmComposite | orderBy:'name'"
- value="{{r}}" title="{{r.name}}">
- {{r.name}}
- </option>
- </select>
- </div>
- </div>
- </div>
- </div>
- <div class="form-group">
- <label class="col-md-2 control-label" for="clients">{{:: 'client-roles' | translate}}</label>
- <div class="col-md-6">
- <input type="hidden" ui-select2="clientsUiSelect" id="clients" data-ng-model="selectedClient" data-ng-change="changeClient(selectedClient);" data-placeholder="{{:: 'authz-select-client' | translate}}...">
- </input>
- </div>
- <div class="col-md-10 col-md-push-2">
- <div class="row" data-ng-show="selectedClient">
- <div class="col-md-3">
- <label class="control-label" for="available-client">{{:: 'available-roles' | translate}}</label>
- <kc-tooltip>{{:: 'assign.available-roles.tooltip' | translate}}</kc-tooltip>
- <select id="available-client" class="form-control overflow-select" multiple size="5"
- ng-multiple="true"
- ng-model="selectedClientRoles">
- <option ng-repeat="r in clientRoles | orderBy:'name'"
- value="{{r}}" title="{{r.name}}">
- {{r.name}}
- </option>
- </select>
- <button ng-disabled="selectedClientRoles.length == 0" class="btn btn-default" type="submit" ng-click="addClientRole()">
- {{:: 'add-selected' | translate}} <i class="fa fa-angle-double-right"></i>
- </button>
- </div>
- <div class="col-md-3">
- <label class="control-label" for="assigned-client">{{:: 'assigned-roles' | translate}}</label>
- <kc-tooltip>{{:: 'client.assigned-roles.tooltip' | translate}}</kc-tooltip>
- <select id="assigned-client" class="form-control overflow-select" multiple size=5
- ng-multiple="true"
- ng-model="selectedClientMappings">
- <option ng-repeat="r in clientMappings | orderBy:'name'"
- value="{{r}}" title="{{r.name}}">
- {{r.name}}
- </option>
- </select>
- <button ng-disabled="selectedClientMappings.length == 0" class="btn btn-default" type="submit" ng-click="deleteClientRole()">
- <i class="fa fa-angle-double-left"></i> {{:: 'remove-selected' | translate}}
- </button>
- </div>
- <div class="col-md-3">
- <label class="control-label" for="client-composite">{{:: 'effective-roles' | translate}}</label>
- <kc-tooltip>{{:: 'client.effective-roles.tooltip' | translate}}</kc-tooltip>
- <select id="client-composite" class="form-control overflow-select" multiple size=5
- disabled="true"
- ng-model="dummymodel">
- <option ng-repeat="r in clientComposite | orderBy:'name'"
- value="{{r}}" title="{{r.name}}">
- {{r.name}}
- </option>
- </select>
- </div>
- </div>
- </div>
- </div>
- </form>
- <form class="form-horizontal" name="realmForm" novalidate kc-read-only="!client.access.configure" data-ng-show="!client.serviceAccountsEnabled">
- <legend><span class="text" translate="service-account-is-not-enabled-for" translate-values="{client: client.clientId}"></span></legend>
- </form>
- </div>
- <kc-menu></kc-menu>
|