client-scope-detail.html 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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 data-ng-show="create">{{:: 'add-client-scope' | translate}}</li>
  5. <li data-ng-hide="create">{{clientScope.name}}</li>
  6. </ol>
  7. <kc-tabs-client-scope></kc-tabs-client-scope>
  8. <form class="form-horizontal" name="clientForm" novalidate kc-read-only="!access.manageClients">
  9. <fieldset class="border-top">
  10. <div class="form-group">
  11. <label class="col-md-2 control-label" for="name">{{:: 'name' | translate}} <span class="required">*</span></label>
  12. <div class="col-sm-6">
  13. <input class="form-control" type="text" id="name" name="name" data-ng-model="clientScope.name" autofocus required>
  14. </div>
  15. <kc-tooltip>{{:: 'client-scope.name.tooltip' | translate}}</kc-tooltip>
  16. </div>
  17. <div class="form-group">
  18. <label class="col-md-2 control-label" for="description">{{:: 'description' | translate}} </label>
  19. <div class="col-sm-6">
  20. <input class="form-control" type="text" id="description" name="description" data-ng-model="clientScope.description">
  21. </div>
  22. <kc-tooltip>{{:: 'client-scope.description.tooltip' | translate}}</kc-tooltip>
  23. </div>
  24. <div class="form-group">
  25. <label class="col-md-2 control-label" for="protocol">{{:: 'protocol' | translate}}</label>
  26. <div class="col-sm-6">
  27. <div>
  28. <select class="form-control" id="protocol"
  29. ng-change="changeProtocol()"
  30. ng-model="protocol"
  31. ng-options="aProtocol for aProtocol in protocols">
  32. </select>
  33. </div>
  34. </div>
  35. <kc-tooltip>{{:: 'client-scope.protocol.tooltip' | translate}}</kc-tooltip>
  36. </div>
  37. <div class="form-group clearfix block" data-ng-show="protocol != 'docker-v2'">
  38. <label class="col-md-2 control-label" for="displayOnConsentScreen">{{:: 'client-scope.display-on-consent-screen' | translate}}</label>
  39. <div class="col-sm-6">
  40. <input ng-model="displayOnConsentScreen" ng-click="switchChange()" name="displayOnConsentScreen" id="displayOnConsentScreen" onoffswitch on-text="{{:: 'onText' | translate}}" off-text="{{:: 'offText' | translate}}"/>
  41. </div>
  42. <kc-tooltip>{{:: 'client-scope.display-on-consent-screen.tooltip' | translate}}</kc-tooltip>
  43. </div>
  44. <div class="form-group" data-ng-show="protocol != 'docker-v2' && displayOnConsentScreen">
  45. <label class="col-md-2 control-label" for="consentScreenText">{{:: 'client-scope.consent-screen-text' | translate}} </label>
  46. <div class="col-sm-6">
  47. <input class="form-control" type="text" id="consentScreenText" name="consentScreenText" data-ng-model="clientScope.attributes['consent.screen.text']">
  48. </div>
  49. <kc-tooltip>{{:: 'client-scope.consent-screen-text.tooltip' | translate}}</kc-tooltip>
  50. </div>
  51. <div class="form-group clearfix block" data-ng-show="protocol == 'openid-connect'">
  52. <label class="col-md-2 control-label" for="includeInTokenScope">{{:: 'client-scope.include-in-token-scope' | translate}}</label>
  53. <div class="col-sm-6">
  54. <input ng-model="includeInTokenScope" ng-click="switchChange()" name="displayOnConsentScreen" id="includeInTokenScope" onoffswitch on-text="{{:: 'onText' | translate}}" off-text="{{:: 'offText' | translate}}"/>
  55. </div>
  56. <kc-tooltip>{{:: 'client-scope.include-in-token-scope.tooltip' | translate}}</kc-tooltip>
  57. </div>
  58. <div class="form-group">
  59. <label class="col-md-2 control-label" for="guiOrder">{{:: 'client-scope.gui-order' | translate}} </label>
  60. <div class="col-sm-6">
  61. <input class="form-control" type="text" id="guiOrder" name="guiOrder" data-ng-model="clientScope.attributes['gui.order']">
  62. </div>
  63. <kc-tooltip>{{:: 'client-scope.gui-order.tooltip' | translate}}</kc-tooltip>
  64. </div>
  65. </fieldset>
  66. <div class="form-group">
  67. <div class="col-md-10 col-md-offset-2" data-ng-show="create && access.manageClients">
  68. <button kc-save data-ng-disabled="!changed">{{:: 'save' | translate}}</button>
  69. <button kc-cancel data-ng-click="cancel()">{{:: 'cancel' | translate}}</button>
  70. </div>
  71. <div class="col-md-10 col-md-offset-2" data-ng-show="!create && access.manageClients">
  72. <button kc-save data-ng-disabled="!changed">{{:: 'save' | translate}}</button>
  73. <button kc-reset data-ng-disabled="!changed">{{:: 'cancel' | translate}}</button>
  74. </div>
  75. </div>
  76. </form>
  77. </div>
  78. <kc-menu></kc-menu>