31 lines
812 B
Cheetah
31 lines
812 B
Cheetah
{{define "title"}}User Signup{{end}}
|
|
|
|
{{define "main"}}
|
|
<form action='/user/signup' method='POST' novalidate>
|
|
<input type="hidden" name"csrf_token" value="{{.CSRFToken}}"
|
|
<div>
|
|
<label>Username:</label>
|
|
{{with .Form.FieldErrors.username}}
|
|
<label class='error'>{{.}}</label>
|
|
{{end}}
|
|
<input type='text' name='username' value='{{.Form.Username}}'>
|
|
</div>
|
|
<div>
|
|
<label>Email:</label>
|
|
{{with .Form.FieldErrors.email}}
|
|
<label class='error'>{{.}}</label>
|
|
{{end}}
|
|
<input type='text' name='email' value='{{.Form.Email}}'>
|
|
</div>
|
|
<div>
|
|
<label>Password:</label>
|
|
{{with .Form.FieldErrors.password}}
|
|
<label class='error'>{{.}}</label>
|
|
{{end}}
|
|
<input type='text' name='password'>
|
|
</div>
|
|
<div>
|
|
<input type='submit' value='Signup'>
|
|
</div>
|
|
{{end}}
|