You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

smtp.tmpl 2.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <div class="smtp field {{if not (eq .type 3)}}gt-hidden{{end}}">
  2. <div class="inline required field">
  3. <label>{{.locale.Tr "admin.auths.smtp_auth"}}</label>
  4. <div class="ui selection type dropdown">
  5. <input type="hidden" id="smtp_auth" name="smtp_auth" value="{{.smtp_auth}}">
  6. <div class="text">{{.smtp_auth}}</div>
  7. {{svg "octicon-triangle-down" 14 "dropdown icon"}}
  8. <div class="menu">
  9. {{range .SMTPAuths}}
  10. <div class="item" data-value="{{.}}">{{.}}</div>
  11. {{end}}
  12. </div>
  13. </div>
  14. </div>
  15. <div class="required field">
  16. <label for="smtp_host">{{.locale.Tr "admin.auths.smtphost"}}</label>
  17. <input id="smtp_host" name="smtp_host" value="{{.smtp_host}}">
  18. </div>
  19. <div class="required field">
  20. <label for="smtp_port">{{.locale.Tr "admin.auths.smtpport"}}</label>
  21. <input id="smtp_port" name="smtp_port" value="{{.smtp_port}}">
  22. </div>
  23. <div class="inline field">
  24. <div class="ui checkbox">
  25. <label for="force_smtps"><strong>{{.locale.Tr "admin.auths.force_smtps"}}</strong></label>
  26. <input id="force_smtps" name="force_smtps" type="checkbox" {{if .force_smtps}}checked{{end}}>
  27. <p class="help">{{.locale.Tr "admin.auths.force_smtps_helper"}}</p>
  28. </div>
  29. </div>
  30. <div class="inline field">
  31. <div class="ui checkbox">
  32. <label><strong>{{.locale.Tr "admin.auths.skip_tls_verify"}}</strong></label>
  33. <input name="skip_verify" type="checkbox" {{if .skip_verify}}checked{{end}}>
  34. </div>
  35. </div>
  36. <div class="field">
  37. <label for="helo_hostname">{{.locale.Tr "admin.auths.helo_hostname"}}</label>
  38. <input id="helo_hostname" name="helo_hostname" value="{{.helo_hostname}}">
  39. <p class="help">{{.locale.Tr "admin.auths.helo_hostname_helper"}}</p>
  40. </div>
  41. <div class="inline field">
  42. <div class="ui checkbox">
  43. <label for="disable_helo"><strong>{{.locale.Tr "admin.auths.disable_helo"}}</strong></label>
  44. <input id="disable_helo" name="disable_helo" type="checkbox" {{if .disable_helo}}checked{{end}}>
  45. </div>
  46. </div>
  47. <div class="field">
  48. <label for="allowed_domains">{{.locale.Tr "admin.auths.allowed_domains"}}</label>
  49. <input id="allowed_domains" name="allowed_domains" value="{{.allowed_domains}}">
  50. <p class="help">{{.locale.Tr "admin.auths.allowed_domains_helper"}}</p>
  51. </div>
  52. <div class="optional field">
  53. <div class="ui checkbox">
  54. <label for="skip_local_two_fa"><strong>{{.locale.Tr "admin.auths.skip_local_two_fa"}}</strong></label>
  55. <input id="skip_local_two_fa" name="skip_local_two_fa" type="checkbox" {{if .skip_local_two_fa}}checked{{end}}>
  56. <p class="help">{{.locale.Tr "admin.auths.skip_local_two_fa_helper"}}</p>
  57. </div>
  58. </div>
  59. </div>