all repos — honk @ 552c9898818450dd43dbfe145f6dcdb059e8b416

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">{{ .User.About }}</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><button>update settings</button>
14</form>
15</div>
16<div>
17<form action="/chpass" method="POST">
18<input type="hidden" name="CSRF" value="{{ .LogoutCSRF }}">
19<p>change password
20<p><input tabindex=1 type="password" name="oldpass"> - oldpass
21<p><input tabindex=1 type="password" name="newpass"> - newpass
22<p><button>change</button>
23</form>
24</div>
25</main>