numerus/web/template/login.gohtml

35 lines
1.1 KiB
Plaintext

<!doctype html>
<html lang="{{ currentLocale }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="application-name" content="Numerus">
<meta name="generator" content="Numerus {{ numerusVersion }}">
<title>{{( pgettext "Login" "title" )}} — Numerus</title>
<link rel="stylesheet" media="screen" href="/static/numerus.css?v={{ numerusVersion }}">
</head>
<body id="login">
<header>
<h1><img src="/static/numerus.svg" alt="Numerus" width="261" height="33"></h1>
</header>
{{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.loginForm*/ -}}
<article>
<h2>{{( pgettext "Login" "title" )}}</h2>
<form method="POST" action="/login">
{{ if .Errors -}}
<div class="error" role="alert">
{{ range $error := .Errors -}}
<p>{{ $error }}</p>
{{- end }}
</div>
{{- end }}
{{ template "input-field" .Email }}
{{ template "input-field" .Password }}
<button type="submit">{{( pgettext "Login" "action" )}}</button>
</form>
</article>
</body>
</html>