all repos — honk @ 07821ff8e0c3a0c5b907424c404b2993982f80cc

my fork of honk

views/account.html (view raw)

 1{{ template "header.html" . }}
 2<main>
 3<div class="info">
 4<p>account - <a href="/logout?CSRF={{ .LogoutCSRF }}">logout</a>
 5<p>username: {{ .User.Name }}
 6<div>
 7<form id="aboutform" action="/saveuser" method="POST">
 8<input type="hidden" name="CSRF" value="{{ .UserCSRF }}">
 9<p>about me:
10<p><textarea name="whatabout">{{ .WhatAbout }}</textarea>
11<p><label class="button" for="skinny">skinny layout:</label>
12<input tabindex=1 type="checkbox" id="skinny" name="skinny" value="skinny" {{ if .User.Options.SkinnyCSS }}checked{{ end }}><span></span>
13<p><label class="button" for="maps">apple map links:</label>
14<input tabindex=1 type="checkbox" id="maps" name="maps" value="apple" {{ if eq "apple" .User.Options.MapLink }}checked{{ end }}><span></span>
15<p><button>update settings</button>
16</form>
17</div>
18<div>
19<form action="/chpass" method="POST">
20<input type="hidden" name="CSRF" value="{{ .LogoutCSRF }}">
21<p>change password
22<p><input tabindex=1 type="password" name="oldpass"> - oldpass
23<p><input tabindex=1 type="password" name="newpass"> - newpass
24<p><button>change</button>
25</form>
26</div>
27</main>