diff options
Diffstat (limited to 'tpls')
-rw-r--r-- | tpls/master.tpl | 1 | ||||
-rw-r--r-- | tpls/settings.tpl | 32 |
2 files changed, 33 insertions, 0 deletions
diff --git a/tpls/master.tpl b/tpls/master.tpl index a79f5c6..7d6a249 100644 --- a/tpls/master.tpl +++ b/tpls/master.tpl @@ -13,6 +13,7 @@ {{if .Mail}} <li><a href="/jobedit">new job</a></li> <li><a href="/jobs">list jobs</a></li> + <li><a href="/settings">settings</a></li> <li><a href="/logout">logout</a></li> {{else}} <li><a href="/register">register</a></li> 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 |