2024-02-07 19:07:29 +00:00
|
|
|
{{define "title"}}User Signup{{end}}
|
|
|
|
|
|
|
|
{{define "main"}}
|
2024-02-08 07:04:06 +00:00
|
|
|
<form action='/user/signup' method='POST' novalidate>
|
|
|
|
<input type="hidden" name"csrf_token" value="{{.CSRFToken}}"
|
2024-02-07 19:07:29 +00:00
|
|
|
<div>
|
|
|
|
<label>Username:</label>
|
|
|
|
{{with .Form.FieldErrors.username}}
|
|
|
|
<label class='error'>{{.}}</label>
|
|
|
|
{{end}}
|
|
|
|
<input type='text' name='username' value='{{.Form.Username}}'>
|
|
|
|
</div>
|
2024-02-07 23:15:54 +00:00
|
|
|
<div>
|
|
|
|
<label>Email:</label>
|
|
|
|
{{with .Form.FieldErrors.email}}
|
|
|
|
<label class='error'>{{.}}</label>
|
|
|
|
{{end}}
|
|
|
|
<input type='text' name='email' value='{{.Form.Email}}'>
|
|
|
|
</div>
|
2024-02-07 19:07:29 +00:00
|
|
|
<div>
|
|
|
|
<label>Password:</label>
|
|
|
|
{{with .Form.FieldErrors.password}}
|
|
|
|
<label class='error'>{{.}}</label>
|
|
|
|
{{end}}
|
2024-02-07 23:15:54 +00:00
|
|
|
<input type='text' name='password'>
|
2024-02-07 19:07:29 +00:00
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<input type='submit' value='Signup'>
|
|
|
|
</div>
|
|
|
|
{{end}}
|