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<div>
6<form id="aboutform" action="/saveuser" method="POST">
7<input type="hidden" name="CSRF" value="{{ .UserCSRF }}">
8<p>about me:
9<p><textarea name="whatabout">{{ .User.About }}</textarea>
10<p><label class="button" for="skinny">skinny layout:</label>
11<input tabindex=1 type="checkbox" id="skinny" name="skinny" value="skinny" {{ if .User.Options.SkinnyCSS }}checked{{ end }}><span></span>
12<p><button>update settings</button>
13</form>
14</div>
15<div>
16<form action="/chpass" method="POST">
17<input type="hidden" name="CSRF" value="{{ .LogoutCSRF }}">
18<p>change password
19<p><input tabindex=1 type="password" name="oldpass"> - oldpass
20<p><input tabindex=1 type="password" name="newpass"> - newpass
21<p><button>change</button>
22</form>
23</div>
24</main>