summaryrefslogtreecommitdiff
path: root/tpls/settings.tpl
blob: b83520e7d45379d040aad43848ec157d0df47c1a (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
{{define "title"}}User Settings{{end}}

{{define "content"}}
	{{if .Error}}<div class="error">{{.Error}}</div>{{end}}
	
	{{if not .Fatal}}
		{{if .Success}}<div class="success">{{.Success}}</div>{{end}}
		
		<form action="/settings?M=setpasswd" method="post" accept-charset="UTF-8" class="fancy">
			<h2>Set Password</h2>
			
			<p><strong>Password:</strong> <input type="password" name="Password" /></p>
			<p><strong>Repeat Password:</strong> <input type="password" name="RepeatPassword" /></p>
			<p><input type="submit" /></p>
		</form>
		
		<form action="/settings?M=settimezone" method="post" accept-charset="UTF-8" class="fancy">
			<h2>Set Timezone</h2>
			
			<p>
				<strong>Timezone:</strong>
				<select size="0" name="Timezone">
					{{range $tz, $active := .Timezones}}<option value="{{$tz}}"{{if $active}} selected="selected"{{end}}>{{$tz}}</option>{{end}}
				</select>
			</p>
			<p><input type="submit" /></p>
		</form>
		
		<form action="/delete-acc" method="get" class="fancy">
			<h2>Delete Account</h2>
			<p><input type="submit" value="Delete Account" /></p>
		</form>
	{{end}}
{{end}}