2021-12-03 12:41:40 -08:00
|
|
|
{{define "content"}}
|
2021-12-25 18:30:22 -08:00
|
|
|
<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">
|
2021-12-18 14:02:29 -08:00
|
|
|
<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}}
|