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