66 lines
2.0 KiB
HTML
66 lines
2.0 KiB
HTML
{{define "setup.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 "setup.heading"}}
|
|
</h1>
|
|
<p class="auth-copy">
|
|
{{.Msg "setup.introduction"}}
|
|
</p>
|
|
{{if .Error}}
|
|
<p class="error" role="alert">
|
|
{{.Error}}
|
|
</p>
|
|
{{end}}
|
|
<form method="post" action="/setup">
|
|
<input type="hidden" name="csrf_token" value="{{.CSRFToken}}">
|
|
<label>
|
|
{{.Msg "field.username"}}
|
|
<input name="username" minlength="3" maxlength="64" autocomplete="username" required>
|
|
</label>
|
|
<label>
|
|
Email
|
|
<input type="email" name="email" maxlength="254" autocomplete="email" required>
|
|
</label>
|
|
<label>
|
|
{{.Msg "field.password"}}
|
|
<input type="password" name="password" minlength="12" maxlength="1024" autocomplete="new-password" required>
|
|
</label>
|
|
<label>
|
|
{{.Msg "language"}}
|
|
<select name="language" required>
|
|
{{range .Languages}}
|
|
<option value="{{.Code}}"{{if eq $.Language .Code}} selected{{end}}>
|
|
{{.Display}}
|
|
</option>
|
|
{{end}}
|
|
</select>
|
|
</label>
|
|
<button type="submit">
|
|
{{.Msg "setup.submit"}}
|
|
</button>
|
|
</form>
|
|
</div>
|
|
</main>
|
|
</body>
|
|
</html>
|
|
{{end}}
|