saasitone/templates/pages/register.gohtml

41 lines
1.9 KiB
Plaintext
Raw Normal View History

2021-12-03 13:35:11 -08:00
{{define "content"}}
<form method="post" hx-boost="true" action="{{url "register.submit"}}">
2021-12-03 13:35:11 -08:00
<div class="field">
2021-12-14 18:16:48 -08:00
<label for="name" class="label">Name</label>
2021-12-03 13:35:11 -08:00
<div class="control">
<input type="text" id="name" name="name" class="input {{.Form.GetFieldStatusClass "Name"}}" value="{{.Form.Name}}">
{{template "field-errors" (.Form.GetFieldErrors "Name")}}
2021-12-14 18:16:48 -08:00
</div>
</div>
<div class="field">
<label for="email" class="label">Email address</label>
<div class="control">
<input type="email" id="email" name="email" class="input {{.Form.GetFieldStatusClass "Email"}}" value="{{.Form.Email}}">
{{template "field-errors" (.Form.GetFieldErrors "Email")}}
2021-12-03 13:35:11 -08:00
</div>
</div>
<div class="field">
2021-12-11 13:06:28 -08:00
<label for="password" class="label">Password</label>
2021-12-03 13:35:11 -08:00
<div class="control">
<input type="password" id="password" name="password" placeholder="*******" class="input {{.Form.GetFieldStatusClass "Password"}}">
{{template "field-errors" (.Form.GetFieldErrors "Password")}}
2021-12-03 13:35:11 -08:00
</div>
</div>
2021-12-14 18:16:48 -08:00
<div class="field">
<label for="password-confirm" class="label">Confirm password</label>
<div class="control">
<input type="password" id="password-confirm" name="password-confirm" placeholder="*******" class="input {{.Form.GetFieldStatusClass "ConfirmPassword"}}">
{{template "field-errors" (.Form.GetFieldErrors "ConfirmPassword")}}
2021-12-14 18:16:48 -08:00
</div>
</div>
2021-12-03 13:35:11 -08:00
<div class="field is-grouped">
<p class="control">
<button class="button is-primary">Register</button>
</p>
<p class="control">
<a href="{{url "home"}}" class="button is-light">Cancel</a>
2021-12-03 13:35:11 -08:00
</p>
</div>
{{template "csrf" .}}
</form>
{{end}}