{{ template "header.html" . }}
{{ template "accountheader.html" . }}
<main>
<div class="outline">
This is your account.
{{ if not .User.IsApproved }}
<p>Read only (no posting) pending approval.
{{ end }}
<p>{{ .User.Name }} - <a href="/dologout?CSRF={{ .LogoutCSRF }}">logout</a>
<form id="aboutform" action="/saveaccount" method="POST">
<input type="hidden" name="CSRF" value="{{ .SaveCSRF }}">
<input type="hidden" name="pg" value="account">
<p><label for=display>display name:</label><br>
<input class="small" tabindex=1 type="text" name="display" value="{{ .User.Person.Display }}">
<p><label for=email>email:</label><br>
<input class="small" tabindex=1 type="email" name="email" value="{{ .User.Email }}">
<p><label for=about>about me:</label><br>
<textarea class="medium" tabindex=1 name="about">{{ .User.Person.About }}</textarea>
<button tabindex=1>update settings</button>
</form>
</div>
<div class="outline">
change password
<form action="/chpass" method="POST">
<input type="hidden" name="CSRF" value="{{ .LogoutCSRF }}">
<p><label for=oldpass>old password:</label><br>
<input class="small" tabindex=1 type="password" name="oldpass">
<p><label for=newpass>new password:</label><br>
<input class="small" tabindex=1 type="password" name="newpass">
<p><button>change</button>
</form>
</div>
</main>
