all repos — honk @ 8a4576e753285641b51ff9d5e46f0a237d7cb1fe

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="omitimages">omit images:</label>
14<input tabindex=1 type="checkbox" id="omitimages" name="omitimages" value="omitimages" {{ if .User.Options.OmitImages }}checked{{ end }}><span></span>
15<p><label class="button" for="maps">apple map links:</label>
16<input tabindex=1 type="checkbox" id="maps" name="maps" value="apple" {{ if eq "apple" .User.Options.MapLink }}checked{{ end }}><span></span>
17<p><button>update settings</button>
18</form>
19</div>
20<div>
21<form action="/chpass" method="POST">
22<input type="hidden" name="CSRF" value="{{ .LogoutCSRF }}">
23<p>change password
24<p><input tabindex=1 type="password" name="oldpass"> - oldpass
25<p><input tabindex=1 type="password" name="newpass"> - newpass
26<p><button>change</button>
27</form>
28</div>
29</main>