{{ template "header.html" . }}
<main>
<div class="outline">
{{ .LoginMsg }}
<form action="/dologin" method="POST">
<p><label for=username>username:</label>
<br><input class="small" tabindex=1 type="text" name="username" autocomplete=off>
<p><label for=password>password:</label>
<br><input class="small" tabindex=1 type="password" name="password">
<p><button tabindex=1 name="login" value="login">login</button>
</form>
</div>
{{ if .AllowSignup }}
<div class="outline">
{{ .SignupMsg }}
<form action="/dosignup" method="POST">
<p><label for=username>username:</label>
<br><input class="small" tabindex=1 type="text" name="username" autocomplete=off>
<p><label for=password>password: (12 chars)</label>
<br><input class="small" tabindex=1 type="password" name="password">
<p><label for=password2>password:</label>
<br><input class="small" tabindex=1 type="password" name="password2">
<p><label for=email>email: (optional)</label>
<br><input class="small" tabindex=1 type="email" name="email">
<p><label for=about>about me:</label>
<br><textarea class="medium" tabindex=1 name="about"></textarea>
{{ if .CapQ }}
<input type="hidden" name="capn" value="{{ .CapN }}">
<p><label for=username>{{ .CapQ }}</label>
<br><input class="small" tabindex=1 type="text" name="capa" autocomplete=off>
{{ end }}
<p><button tabindex=1 name="signup" value="signup">signup</button>
</form>
</div>
{{ end }}
</main>
