summaryrefslogtreecommitdiffstats
path: root/templates/user/settings/delete.tmpl
blob: 08e8f75d9ad6e41abb889003b1aa8d893dec3ea5 (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
{{template "base/head" .}}
<div class="user settings delete">
	<div class="ui container">
		<div class="ui grid">
			{{template "user/settings/navbar" .}}
			<div class="twelve wide column content">
				{{template "base/alert" .}}
				<h4 class="ui top attached warning header">
					{{.i18n.Tr "settings.delete_account"}}
				</h4>
				<div class="ui attached warning segment">
					<div class="ui red message">
						<p class="text left"><i class="octicon octicon-alert"></i> {{.i18n.Tr "settings.delete_prompt" | Str2html}}</p>
					</div>
					<form class="ui form" id="delete-form" action="{{.Link}}" method="post">
						{{.CsrfTokenHtml}}
						<input class="fake" type="password">
						<div class="inline required field {{if .Err_Password}}error{{end}}">
							<label for="password">{{.i18n.Tr "password"}}</label>
							<input id="password" name="password" type="password" autofocus required>
						</div>
						<div class="ui red button delete-button" data-type="form" data-form="#delete-form">
							{{.i18n.Tr "settings.confirm_delete_account"}}
						</div>
						<div>
							<a href="{{AppSubUrl}}/user/forgot_password?email={{.Email}}">{{.i18n.Tr "auth.forgot_password"}}</a>
						</div>
					</form>
				</div>
			</div>
		</div>
	</div>
</div>

<div class="ui small basic delete modal">
	<div class="ui icon header">
		<i class="trash icon"></i>
		{{.i18n.Tr "settings.delete_account_title"}}
	</div>
	<div class="content">
		<p>{{.i18n.Tr "settings.delete_account_desc"}}</p>
	</div>
	{{template "base/delete_modal_actions" .}}
</div>
{{template "base/footer" .}}