realm-detail.html 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <div class="col-sm-9 col-md-10 col-sm-push-3 col-md-push-2">
  2. <kc-tabs-realm></kc-tabs-realm>
  3. <form class="form-horizontal" name="realmForm" novalidate kc-read-only="!access.manageRealm">
  4. <div class="form-group">
  5. <label class="col-md-2 control-label" for="name"><span class="required">*</span> {{:: 'name' | translate}}</label>
  6. <div class="col-md-6">
  7. <input kc-no-reserved-chars class="form-control" data-ng-disabled="disableRename" type="text" id="name" name="name" data-ng-model="realmName" autofocus required>
  8. </div>
  9. </div>
  10. <div class="form-group">
  11. <label class="col-md-2 control-label" for="name">{{:: 'displayName' | translate}}</label>
  12. <div class="col-md-6">
  13. <input class="form-control" type="text" id="displayName" name="displayName" data-ng-model="realm.displayName">
  14. </div>
  15. </div>
  16. <div class="form-group">
  17. <label class="col-md-2 control-label" for="name">{{:: 'displayNameHtml' | translate}}</label>
  18. <div class="col-md-6">
  19. <input class="form-control" type="text" id="displayNameHtml" name="displayNameHtml" data-ng-model="realm.displayNameHtml">
  20. </div>
  21. </div>
  22. <div class="form-group" data-ng-show="serverInfo.listProviderIds('hostname').includes('default')">
  23. <label class="col-md-2 control-label" for="name">{{:: 'realm-detail.frontendUrl' | translate}}</label>
  24. <div class="col-md-6">
  25. <input class="form-control" type="text" id="frontendUrl" name="frontendUrl" data-ng-model="realm.attributes.frontendUrl">
  26. </div>
  27. <kc-tooltip>{{:: 'realm-detail.frontendUrl.tooltip' | translate}}</kc-tooltip>
  28. </div>
  29. <div class="form-group" data-ng-show="serverInfo.listProviderIds('hostname').includes('fixed')">
  30. <label class="col-md-2 control-label" for="name">{{:: 'realm-detail.hostname' | translate}}</label>
  31. <div class="col-md-6">
  32. <input class="form-control" type="text" id="hostname" name="hostname" data-ng-model="realm.attributes.hostname">
  33. </div>
  34. <kc-tooltip>{{:: 'realm-detail.hostname.tooltip' | translate}}</kc-tooltip>
  35. </div>
  36. <div class="form-group">
  37. <label class="col-md-2 control-label" for="enabled">{{:: 'enabled' | translate}}</label>
  38. <div class="col-md-6">
  39. <input ng-model="realm.enabled" name="enabled" id="enabled" onoffswitch on-text="{{:: 'onText' | translate}}" off-text="{{:: 'offText' | translate}}" />
  40. </div>
  41. <kc-tooltip>{{:: 'realm-detail.enabled.tooltip' | translate}}</kc-tooltip>
  42. </div>
  43. <div class="form-group" data-ng-show="serverInfo.featureEnabled('AUTHORIZATION')">
  44. <label class="col-md-2 control-label" for="userManagedAccessAllowed">{{:: 'userManagedAccess' | translate}}</label>
  45. <div class="col-md-6">
  46. <input ng-model="realm.userManagedAccessAllowed" name="userManagedAccessAllowed" id="userManagedAccessAllowed" onoffswitch on-text="{{:: 'onText' | translate}}" off-text="{{:: 'offText' | translate}}" />
  47. </div>
  48. <kc-tooltip>{{:: 'realm-detail.userManagedAccess.tooltip' | translate}}</kc-tooltip>
  49. </div>
  50. <div class="form-group" data-ng-show="serverInfo.featureEnabled('DECLARATIVE_USER_PROFILE')">
  51. <label class="col-md-2 control-label" for="userProfileEnabled">{{:: 'userProfileEnabled' | translate}}</label>
  52. <div class="col-md-6">
  53. <input ng-model="realm.attributes['userProfileEnabled']" name="userProfileEnabled" id="userProfileEnabled" onoffswitch on-text="{{:: 'onText' | translate}}" off-text="{{:: 'offText' | translate}}" />
  54. </div>
  55. <kc-tooltip>{{:: 'userProfileEnabled.tooltip' | translate}}</kc-tooltip>
  56. </div>
  57. <div class="form-group">
  58. <label class="col-md-2 control-label">{{:: 'endpoints' | translate}}</label>
  59. <div class="col-md-6">
  60. <a class="form-control" ng-href="{{authServerUrl}}/realms/{{realm.realm}}/.well-known/openid-configuration" rel="noopener noreferrer" target="_blank">{{:: 'realm-detail.protocol-endpoints.oidc' | translate}}</a>
  61. <a class="form-control" ng-href="{{authServerUrl}}/realms/{{realm.realm}}/protocol/saml/descriptor" rel="noopener noreferrer" target="_blank">{{:: 'realm-detail.protocol-endpoints.saml' | translate}}</a>
  62. </div>
  63. <kc-tooltip>{{:: 'realm-detail.protocol-endpoints.tooltip' | translate}}</kc-tooltip>
  64. </div>
  65. <div class="form-group">
  66. <div class="col-md-10 col-md-offset-2" data-ng-show="createRealm && access.manageRealm">
  67. <button kc-save data-ng-show="changed">{{:: 'save' | translate}}</button>
  68. <button kc-cancel data-ng-click="cancel()">{{:: 'cancel' | translate}}</button>
  69. </div>
  70. <div class="col-md-10 col-md-offset-2" data-ng-show="!createRealm && access.manageRealm">
  71. <button kc-save data-ng-disabled="!changed">{{:: 'save' | translate}}</button>
  72. <button kc-reset data-ng-disabled="!changed">{{:: 'cancel' | translate}}</button>
  73. </div>
  74. </div>
  75. </form>
  76. </div>
  77. <kc-menu></kc-menu>