2023-02-19 09:36:14 +05:30
|
|
|
<div class="smtp field {{if not (eq .type 3)}}gt-hidden{{end}}">
|
2017-03-17 11:25:04 +05:30
|
|
|
<div class="inline required field">
|
2023-09-25 14:26:50 +05:30
|
|
|
<label>{{ctx.Locale.Tr "admin.auths.smtp_auth"}}</label>
|
2017-03-17 11:25:04 +05:30
|
|
|
<div class="ui selection type dropdown">
|
|
|
|
<input type="hidden" id="smtp_auth" name="smtp_auth" value="{{.smtp_auth}}">
|
|
|
|
<div class="text">{{.smtp_auth}}</div>
|
2020-11-01 03:45:11 +05:30
|
|
|
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
|
2017-03-17 11:25:04 +05:30
|
|
|
<div class="menu">
|
|
|
|
{{range .SMTPAuths}}
|
|
|
|
<div class="item" data-value="{{.}}">{{.}}</div>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="required field">
|
2023-09-25 14:26:50 +05:30
|
|
|
<label for="smtp_host">{{ctx.Locale.Tr "admin.auths.smtphost"}}</label>
|
2017-03-17 11:25:04 +05:30
|
|
|
<input id="smtp_host" name="smtp_host" value="{{.smtp_host}}">
|
|
|
|
</div>
|
|
|
|
<div class="required field">
|
2023-09-25 14:26:50 +05:30
|
|
|
<label for="smtp_port">{{ctx.Locale.Tr "admin.auths.smtpport"}}</label>
|
2017-03-17 11:25:04 +05:30
|
|
|
<input id="smtp_port" name="smtp_port" value="{{.smtp_port}}">
|
|
|
|
</div>
|
2021-08-12 02:12:58 +05:30
|
|
|
<div class="inline field">
|
|
|
|
<div class="ui checkbox">
|
2023-09-25 14:26:50 +05:30
|
|
|
<label for="force_smtps"><strong>{{ctx.Locale.Tr "admin.auths.force_smtps"}}</strong></label>
|
2021-08-12 02:12:58 +05:30
|
|
|
<input id="force_smtps" name="force_smtps" type="checkbox" {{if .force_smtps}}checked{{end}}>
|
2023-09-25 14:26:50 +05:30
|
|
|
<p class="help">{{ctx.Locale.Tr "admin.auths.force_smtps_helper"}}</p>
|
2021-08-12 02:12:58 +05:30
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="inline field">
|
|
|
|
<div class="ui checkbox">
|
2023-09-25 14:26:50 +05:30
|
|
|
<label><strong>{{ctx.Locale.Tr "admin.auths.skip_tls_verify"}}</strong></label>
|
2021-08-12 02:12:58 +05:30
|
|
|
<input name="skip_verify" type="checkbox" {{if .skip_verify}}checked{{end}}>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="field">
|
2023-09-25 14:26:50 +05:30
|
|
|
<label for="helo_hostname">{{ctx.Locale.Tr "admin.auths.helo_hostname"}}</label>
|
2021-08-12 02:12:58 +05:30
|
|
|
<input id="helo_hostname" name="helo_hostname" value="{{.helo_hostname}}">
|
2023-09-25 14:26:50 +05:30
|
|
|
<p class="help">{{ctx.Locale.Tr "admin.auths.helo_hostname_helper"}}</p>
|
2021-08-12 02:12:58 +05:30
|
|
|
</div>
|
|
|
|
<div class="inline field">
|
|
|
|
<div class="ui checkbox">
|
2023-09-25 14:26:50 +05:30
|
|
|
<label for="disable_helo"><strong>{{ctx.Locale.Tr "admin.auths.disable_helo"}}</strong></label>
|
2021-08-12 02:12:58 +05:30
|
|
|
<input id="disable_helo" name="disable_helo" type="checkbox" {{if .disable_helo}}checked{{end}}>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-03-17 11:25:04 +05:30
|
|
|
<div class="field">
|
2023-09-25 14:26:50 +05:30
|
|
|
<label for="allowed_domains">{{ctx.Locale.Tr "admin.auths.allowed_domains"}}</label>
|
2017-03-17 11:25:04 +05:30
|
|
|
<input id="allowed_domains" name="allowed_domains" value="{{.allowed_domains}}">
|
2023-09-25 14:26:50 +05:30
|
|
|
<p class="help">{{ctx.Locale.Tr "admin.auths.allowed_domains_helper"}}</p>
|
2017-03-17 11:25:04 +05:30
|
|
|
</div>
|
2021-09-27 06:32:01 +05:30
|
|
|
<div class="optional field">
|
|
|
|
<div class="ui checkbox">
|
2023-09-25 14:26:50 +05:30
|
|
|
<label for="skip_local_two_fa"><strong>{{ctx.Locale.Tr "admin.auths.skip_local_two_fa"}}</strong></label>
|
2021-09-27 06:32:01 +05:30
|
|
|
<input id="skip_local_two_fa" name="skip_local_two_fa" type="checkbox" {{if .skip_local_two_fa}}checked{{end}}>
|
2023-09-25 14:26:50 +05:30
|
|
|
<p class="help">{{ctx.Locale.Tr "admin.auths.skip_local_two_fa_helper"}}</p>
|
2021-09-27 06:32:01 +05:30
|
|
|
</div>
|
|
|
|
</div>
|
2017-03-17 11:25:04 +05:30
|
|
|
</div>
|