honk/views/account.html

26 lines
870 B
HTML
Raw Normal View History

2019-05-15 01:19:18 +02:00
{{ template "header.html" . }}
<main>
<div class="info">
<p>account
<p><a href="/logout?CSRF={{ .LogoutCSRF }}">logout</a></p>
<div>
<form id="aboutform" action="/saveuser" method="POST">
<p>about
<input type="hidden" name="CSRF" value="{{ .UserCSRF }}">
2019-06-28 04:36:55 +02:00
<p><textarea name="whatabout">{{ .User.About }}</textarea>
<p><span><label for="skinny">skinny layout:</label>
<input tabindex=1 type="checkbox" id="skinny" name="skinny" value="skinny" {{ if .User.SkinnyCSS }}checked{{ end }}><span></span></span>
2019-05-15 01:19:18 +02:00
<p><input type="submit" value="update">
</form>
</div>
<div>
<form action="/chpass" method="POST">
<input type="hidden" name="CSRF" value="{{ .LogoutCSRF }}">
<p>change password
<p><input tabindex=1 type="password" name="oldpass"> - oldpass
<p><input tabindex=1 type="password" name="newpass"> - newpass
<p><input type="submit" value="update">
</form>
</div>
</main>