Files
DoGaMa-serv/internal/web/templates/login.html
T
codex 39a33556d6
CI / validate (pull_request) Successful in 26m0s
chore(code): improve source readability
2026-08-15 23:09:59 +02:00

52 lines
1.5 KiB
HTML

{{define "login.html"}}
<!doctype html>
<html lang="{{.Language}}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>
{{.Title}}
· DoGaMa
</title>
<link rel="stylesheet" href="/static/app.v1.css">
</head>
<body class="auth-body">
<main class="auth-card">
<div class="auth-brand">
<img src="/static/dogama-brand-banner.png" alt="DoGaMa">
</div>
<div class="auth-content">
<p class="eyebrow">
{{.Msg "brand.control"}}
</p>
<h1>
{{.Msg "login.heading"}}
</h1>
<p class="auth-copy">
{{.Msg "brand.control"}}
</p>
{{if .Error}}
<p class="error" role="alert">
{{.Error}}
</p>
{{end}}
<form method="post" action="/login">
<input type="hidden" name="csrf_token" value="{{.CSRFToken}}">
<label>
{{.Msg "field.username"}}
<input name="username" autocomplete="username" required>
</label>
<label>
{{.Msg "field.password"}}
<input type="password" name="password" autocomplete="current-password" required>
</label>
<button type="submit">
{{.Msg "login.submit"}}
</button>
</form>
</div>
</main>
</body>
</html>
{{end}}