{{ define "title" -}}
    {{( pgettext "Login" "title" )}}
{{- end }}

{{ define "content" }}
    <h1><img src="/static/numerus.svg" alt="Numerus" width="620" height="77"></h1>
    {{ 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 }}
