realm-login-settings.html 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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. <fieldset class="border-top">
  5. <div class="form-group">
  6. <label for="registrationAllowed" class="col-md-2 control-label">{{:: 'registrationAllowed' | translate}}</label>
  7. <div class="col-md-6">
  8. <input ng-model="realm.registrationAllowed" name="registrationAllowed" id="registrationAllowed" onoffswitch on-text="{{:: 'onText' | translate}}" off-text="{{:: 'offText' | translate}}" />
  9. </div>
  10. <kc-tooltip>{{:: 'registrationAllowed.tooltip' | translate}}</kc-tooltip>
  11. </div>
  12. <div class="form-group" ng-show="realm.registrationAllowed">
  13. <label for="registrationEmailAsUsername" class="col-md-2 control-label">{{:: 'registrationEmailAsUsername' | translate}}</label>
  14. <div class="col-md-6">
  15. <input ng-model="realm.registrationEmailAsUsername" name="registrationEmailAsUsername" id="registrationEmailAsUsername" onoffswitch on-text="{{:: 'onText' | translate}}" off-text="{{:: 'offText' | translate}}" />
  16. </div>
  17. <kc-tooltip>{{:: 'registrationEmailAsUsername.tooltip' | translate}}</kc-tooltip>
  18. </div>
  19. <div class="form-group">
  20. <label for="editUsernameAllowed" class="col-md-2 control-label">{{:: 'editUsernameAllowed' | translate}}</label>
  21. <div class="col-md-6">
  22. <input ng-model="realm.editUsernameAllowed" name="editUsernameAllowed" id="editUsernameAllowed" onoffswitch on-text="{{:: 'onText' | translate}}" off-text="{{:: 'offText' | translate}}" />
  23. </div>
  24. <kc-tooltip>{{:: 'editUsernameAllowed.tooltip' | translate}}</kc-tooltip>
  25. </div>
  26. <div class="form-group">
  27. <label for="resetPasswordAllowed" class="col-md-2 control-label">{{:: 'resetPasswordAllowed' | translate}}</label>
  28. <div class="col-md-6">
  29. <input ng-model="realm.resetPasswordAllowed" name="resetPasswordAllowed" id="resetPasswordAllowed" onoffswitch on-text="{{:: 'onText' | translate}}" off-text="{{:: 'offText' | translate}}" />
  30. </div>
  31. <kc-tooltip>{{:: 'resetPasswordAllowed.tooltip' |translate}}</kc-tooltip>
  32. </div>
  33. <div class="form-group">
  34. <label class="col-md-2 control-label" for="rememberMe">{{:: 'rememberMe' | translate}}</label>
  35. <div class="col-md-6">
  36. <input ng-model="realm.rememberMe" name="rememberMe" id="rememberMe" onoffswitch on-text="{{:: 'onText' | translate}}" off-text="{{:: 'offText' | translate}}" />
  37. </div>
  38. <kc-tooltip>{{:: 'rememberMe.tooltip' | translate}}</kc-tooltip>
  39. </div>
  40. <div class="form-group">
  41. <label for="verifyEmail" class="col-md-2 control-label">{{:: 'verifyEmail' | translate}}</label>
  42. <div class="col-md-6">
  43. <input ng-model="realm.verifyEmail" name="verifyEmail" id="verifyEmail" onoffswitch on-text="{{:: 'onText' | translate}}" off-text="{{:: 'offText' | translate}}" />
  44. </div>
  45. <kc-tooltip>{{:: 'verifyEmail.tooltip' | translate}}</kc-tooltip>
  46. </div>
  47. <div class="form-group">
  48. <label for="loginWithEmailAllowed" class="col-md-2 control-label">{{:: 'loginWithEmailAllowed' | translate}}</label>
  49. <div class="col-md-6">
  50. <input ng-model="realm.loginWithEmailAllowed" name="loginWithEmailAllowed" id="loginWithEmailAllowed" onoffswitch on-text="{{:: 'onText' | translate}}" off-text="{{:: 'offText' | translate}}" />
  51. </div>
  52. <kc-tooltip>{{:: 'loginWithEmailAllowed.tooltip' | translate}}</kc-tooltip>
  53. </div>
  54. <div class="form-group" ng-show="!realm.loginWithEmailAllowed && !realm.registrationEmailAsUsername">
  55. <label for="duplicateEmailsAllowed" class="col-md-2 control-label">{{:: 'duplicateEmailsAllowed' | translate}}</label>
  56. <div class="col-md-6">
  57. <input ng-model="realm.duplicateEmailsAllowed" name="duplicateEmailsAllowed" id="duplicateEmailsAllowed" onoffswitch on-text="{{:: 'onText' | translate}}" off-text="{{:: 'offText' | translate}}" />
  58. </div>
  59. <kc-tooltip>{{:: 'duplicateEmailsAllowed.tooltip' | translate}}</kc-tooltip>
  60. </div>
  61. <div class="form-group">
  62. <label for="sslRequired" class="col-md-2 control-label">{{:: 'sslRequired' | translate}}</label>
  63. <div class="col-md-2">
  64. <div>
  65. <select id="sslRequired" ng-model="realm.sslRequired" class="form-control">
  66. <option value="all">{{:: 'sslRequired.option.all' | translate}}</option>
  67. <option value="external">{{:: 'sslRequired.option.external' | translate}}</option>
  68. <option value="none">{{:: 'sslRequired.option.none' | translate}}</option>
  69. </select>
  70. </div>
  71. </div>
  72. <kc-tooltip>{{:: 'sslRequired.tooltip' | translate}}</kc-tooltip>
  73. </div>
  74. </fieldset>
  75. <div class="form-group" data-ng-show="access.manageRealm">
  76. <div class="col-md-10 col-md-offset-2">
  77. <button kc-save data-ng-disabled="!changed">{{:: 'save' | translate}}</button>
  78. <button kc-reset data-ng-disabled="!changed">{{:: 'cancel' | translate}}</button>
  79. </div>
  80. </div>
  81. </form>
  82. </div>
  83. <kc-menu></kc-menu>