diff options
author | Kevin Chabowski <kevin@kch42.de> | 2013-09-12 22:40:52 +0200 |
---|---|---|
committer | Kevin Chabowski <kevin@kch42.de> | 2013-09-12 22:40:52 +0200 |
commit | 0fe336b08f7868d0f7b531cb30c9facfea0f25f2 (patch) | |
tree | 0cb6a8aee4b3f0389c48d800b19f444f3aea4016 /tpls | |
parent | b0e40b8764eab7c40b3f5e6f994af3c423b92dfc (diff) | |
download | mailremind-0fe336b08f7868d0f7b531cb30c9facfea0f25f2.tar.gz mailremind-0fe336b08f7868d0f7b531cb30c9facfea0f25f2.tar.bz2 mailremind-0fe336b08f7868d0f7b531cb30c9facfea0f25f2.zip |
Added settings page
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 |