learn-go/snippetbox/ui/html/pages/signup.tmpl

23 lines
573 B
Cheetah
Raw Normal View History

{{define "title"}}User Signup{{end}}
{{define "main"}}
<form action='/user/signup' method='POST'>
<div>
<label>Username:</label>
{{with .Form.FieldErrors.username}}
<label class='error'>{{.}}</label>
{{end}}
<input type='text' name='username' value='{{.Form.Username}}'>
</div>
<div>
<label>Password:</label>
{{with .Form.FieldErrors.password}}
<label class='error'>{{.}}</label>
{{end}}
<input type='text' name='password' value='{{.Form.Password}}'>
</div>
<div>
<input type='submit' value='Signup'>
</div>
{{end}}