saasitone/templates/pages/login.gohtml

28 lines
1.3 KiB
Plaintext
Raw Normal View History

2021-12-03 12:41:40 -08:00
{{define "content"}}
<form method="post" hx-boost="true" action="{{call .ToURL "login.post"}}">
2021-12-24 12:38:14 -08:00
{{template "messages" .}}
2021-12-03 12:41:40 -08:00
<div class="field">
2021-12-14 18:16:48 -08:00
<label for="email" class="label">Email address</label>
2021-12-03 12:41:40 -08:00
<div class="control">
2021-12-27 09:54:27 -08:00
<input id="email" type="email" name="email" class="input {{.Form.Submission.GetFieldStatusClass "Email"}}" value="{{.Form.Email}}">
2021-12-23 20:04:00 -08:00
{{template "field-errors" (.Form.Submission.GetFieldErrors "Email")}}
2021-12-03 12:41:40 -08:00
</div>
</div>
<div class="field">
2021-12-12 16:02:25 -08:00
<label for="password" class="label">Password</label>
2021-12-03 12:41:40 -08:00
<div class="control">
2021-12-27 09:54:27 -08:00
<input id="password" type="password" name="password" placeholder="*******" class="input {{.Form.Submission.GetFieldStatusClass "Password"}}">
2021-12-23 20:04:00 -08:00
{{template "field-errors" (.Form.Submission.GetFieldErrors "Password")}}
2021-12-03 12:41:40 -08:00
</div>
</div>
<div class="field is-grouped">
<p class="control">
<button class="button is-primary">Log in</button>
</p>
<p class="control">
<a href="{{call .ToURL "home"}}" class="button is-light">Cancel</a>
2021-12-03 12:41:40 -08:00
</p>
</div>
2021-12-03 13:35:11 -08:00
{{template "csrf" .}}
2021-12-03 12:41:40 -08:00
</form>
{{end}}