saasitone/templates/pages/forgot-password.gohtml

23 lines
1008 B
Plaintext
Raw Normal View History

2021-12-14 18:59:56 -08:00
{{define "content"}}
<form method="post" hx-boost="true" action="{{url "forgot_password.submit"}}">
2021-12-14 18:59:56 -08:00
<div class="content">
<p>Enter your email address and we'll email you a link that allows you to reset your password.</p>
</div>
<div class="field">
<label for="email" class="label">Email address</label>
<div class="control">
<input id="email" type="email" name="email" class="input {{.Form.Submission.GetFieldStatusClass "Email"}}" value="{{.Form.Email}}">
{{template "field-errors" (.Form.Submission.GetFieldErrors "Email")}}
2021-12-14 18:59:56 -08:00
</div>
</div>
<div class="field is-grouped">
<p class="control">
<button class="button is-primary">Reset password</button>
</p>
<p class="control">
<a href="{{url "home"}}" class="button is-light">Cancel</a>
2021-12-14 18:59:56 -08:00
</p>
</div>
{{template "csrf" .}}
</form>
{{end}}