diff options
Diffstat (limited to 'tpls/settings.tpl')
-rw-r--r-- | tpls/settings.tpl | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/tpls/settings.tpl b/tpls/settings.tpl new file mode 100644 index 0000000..605a596 --- /dev/null +++ b/tpls/settings.tpl @@ -0,0 +1,32 @@ +{{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"> + <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"> + <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> + + <h2>Delete Account</h2> + <p><a href="/delete-acc">Delete Account</a></p> + {{end}} +{{end}}
\ No newline at end of file |