numerus/web/template/login.gohtml

23 lines
694 B
Plaintext
Raw Normal View History

{{ define "title" -}}
{{( pgettext "Login" "title" )}}
{{- end }}
{{ define "content" }}
2024-01-20 19:23:47 +00:00
{{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.loginForm*/ -}}
{{ if .Errors -}}
<div class="error" role="alert">
{{ range $error := .Errors -}}
<p>{{ $error }}</p>
{{- end }}
</div>
{{- end }}
<section id="login">
<h2>{{( pgettext "Login" "title" )}}</h2>
<form method="POST" action="/login">
{{ template "input-field" .Email }}
{{ template "input-field" .Password }}
<button type="submit">{{( pgettext "Login" "action" )}}</button>
</form>
</section>
{{- end }}