23 lines
694 B
Plaintext
23 lines
694 B
Plaintext
{{ define "title" -}}
|
|
{{( pgettext "Login" "title" )}}
|
|
{{- end }}
|
|
|
|
{{ define "content" }}
|
|
{{- /*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 }}
|