realm-smtp.html 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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 clearfix">
  5. <label class="col-md-2 control-label" for="smtpHost"><span class="required">*</span> {{:: 'host' | translate}}</label>
  6. <div class="col-md-6">
  7. <input class="form-control" id="smtpHost" type="text" ng-model="realm.smtpServer.host" placeholder="{{:: 'smtp-host' | translate}}" required>
  8. </div>
  9. <div class="col-sm-4">
  10. <a class="btn btn-primary" data-ng-click="testConnection()">{{:: 'test-connection' | translate}}</a>
  11. </div>
  12. </div>
  13. <div class="form-group clearfix">
  14. <label class="col-md-2 control-label" for="smtpPort">{{:: 'port' | translate}}</label>
  15. <div class="col-md-6">
  16. <input class="form-control" id="smtpPort" type="number" ng-model="realm.smtpServer.port" placeholder="{{:: 'smtp-port' | translate}}">
  17. </div>
  18. </div>
  19. <div class="form-group clearfix">
  20. <label class="col-md-2 control-label" for="smtpFromDisplayName">{{:: 'fromDisplayName' | translate}}</label>
  21. <div class="col-md-6">
  22. <input class="form-control" id="smtpFromDisplayName" type="text" ng-model="realm.smtpServer.fromDisplayName" placeholder="{{:: 'sender-email-addr-display' | translate}}">
  23. </div>
  24. <kc-tooltip>{{:: 'fromDisplayName.tooltip' | translate}}</kc-tooltip>
  25. </div>
  26. <div class="form-group clearfix">
  27. <label class="col-md-2 control-label" for="smtpFrom"><span class="required">*</span> {{:: 'from' | translate}}</label>
  28. <div class="col-md-6">
  29. <input class="form-control" id="smtpFrom" type="email" ng-model="realm.smtpServer.from" placeholder="{{:: 'sender-email-addr' | translate}}" required>
  30. </div>
  31. </div>
  32. <div class="form-group clearfix">
  33. <label class="col-md-2 control-label" for="smtpReplyToDisplayName">{{:: 'replyToDisplayName' | translate}}</label>
  34. <div class="col-md-6">
  35. <input class="form-control" id="smtpReplyToDisplayName" type="text" ng-model="realm.smtpServer.replyToDisplayName" placeholder="{{:: 'reply-to-email-addr-display' | translate}}">
  36. </div>
  37. <kc-tooltip>{{:: 'replyToDisplayName.tooltip' | translate}}</kc-tooltip>
  38. </div>
  39. <div class="form-group clearfix">
  40. <label class="col-md-2 control-label" for="smtpReplyTo">{{:: 'replyTo' | translate}}</label>
  41. <div class="col-md-6">
  42. <input class="form-control" id="smtpReplyTo" type="email" ng-model="realm.smtpServer.replyTo" placeholder="{{:: 'reply-to-email-addr' | translate}}">
  43. </div>
  44. </div>
  45. <div class="form-group clearfix">
  46. <label class="col-md-2 control-label" for="smtpEnvelopeFrom">{{:: 'envelopeFrom' | translate}}</label>
  47. <div class="col-md-6">
  48. <input class="form-control" id="smtpEnvelopeFrom" type="email" ng-model="realm.smtpServer.envelopeFrom" placeholder="{{:: 'sender-envelope-email-addr' | translate}}">
  49. </div>
  50. <kc-tooltip>{{:: 'envelopeFrom.tooltip' | translate}}</kc-tooltip>
  51. </div>
  52. <div class="form-group clearfix">
  53. <label class="col-md-2 control-label" for="smtpSSL">{{:: 'enable-ssl' | translate}}</label>
  54. <div class="col-md-6">
  55. <input ng-model="realm.smtpServer.ssl" name="smtpSSL" id="smtpSSL" onoffswitch on-text="{{:: 'onText' | translate}}" off-text="{{:: 'offText' | translate}}"/>
  56. </div>
  57. </div>
  58. <div class="form-group clearfix">
  59. <label class="col-md-2 control-label" for="smtpStartTLS">{{:: 'enable-start-tls' | translate}}</label>
  60. <div class="col-md-6">
  61. <input ng-model="realm.smtpServer.starttls" name="smtpStartTLS" id="smtpStartTLS" onoffswitch on-text="{{:: 'onText' | translate}}" off-text="{{:: 'offText' | translate}}"/>
  62. </div>
  63. </div>
  64. <div class="form-group clearfix">
  65. <label class="col-md-2 control-label" for="smtpAuth">{{:: 'enable-auth' | translate}}</label>
  66. <div class="col-md-6">
  67. <input ng-model="realm.smtpServer.auth" name="smtpAuth" id="smtpAuth" onoffswitch on-text="{{:: 'onText' | translate}}" off-text="{{:: 'offText' | translate}}"/>
  68. </div>
  69. </div>
  70. <div class="form-group clearfix" data-ng-show="realm.smtpServer.auth">
  71. <label class="col-md-2 control-label" for="smtpUsername"><span class="required">*</span> {{:: 'username' | translate}}</span></label>
  72. <div class="col-md-6">
  73. <input class="form-control" id="smtpUsername" type="text" ng-model="realm.smtpServer.user" placeholder="{{:: 'login-username' | translate}}" ng-disabled="!realm.smtpServer.auth" ng-required="realm.smtpServer.auth">
  74. </div>
  75. </div>
  76. <div class="form-group clearfix" data-ng-show="realm.smtpServer.auth">
  77. <label class="col-md-2 control-label" for="smtpPas"><span class="required">*</span> {{:: 'password' | translate}}</label>
  78. <div class="col-md-6">
  79. <input class="form-control" id="smtpPas" kc-password ng-model="realm.smtpServer.password" placeholder="{{:: 'login-password' | translate}}" ng-disabled="!realm.smtpServer.auth" ng-required="realm.smtpServer.auth">
  80. </div>
  81. <kc-tooltip>{{:: 'smtp-password.tooltip' | translate}}</kc-tooltip>
  82. </div>
  83. <div class="form-group" data-ng-show="access.manageRealm">
  84. <div class="col-md-10 col-md-offset-2">
  85. <button data-kc-save data-ng-disabled="!changed">{{:: 'save' | translate}}</button>
  86. <button data-kc-reset data-ng-disabled="!changed">{{:: 'cancel' | translate}}</button>
  87. </div>
  88. </div>
  89. </form>
  90. </div>
  91. <kc-menu></kc-menu>