2025-01-06 00:41:32 +01:00
|
|
|
{{ define "main" }}
|
2025-01-26 00:04:38 +01:00
|
|
|
<main class="responsive">
|
|
|
|
<form action="/login" method="post">
|
|
|
|
<fieldset>
|
|
|
|
<div class="field border label{{ if .Forbidden }} invalid{{ end}}">
|
2025-01-31 20:53:29 +01:00
|
|
|
<input autofocus
|
|
|
|
id="username"
|
2025-01-26 00:04:38 +01:00
|
|
|
name="username"
|
|
|
|
type="text"
|
|
|
|
value="{{ .Username }}"
|
|
|
|
required>
|
|
|
|
<label for="username">Username</label>
|
|
|
|
{{ if .Forbidden }}<span class="error">Invalid username or password</span>{{ end }}
|
|
|
|
</div>
|
|
|
|
<div class="field border label{{ if .Forbidden }} invalid{{ end}}">
|
|
|
|
<input id="password"
|
|
|
|
name="password"
|
|
|
|
type="password"
|
|
|
|
required>
|
|
|
|
<label for="password">Password</label>
|
|
|
|
{{ if .Forbidden }}<span class="error">Invalid username or password</span>{{ end }}
|
|
|
|
</div>
|
|
|
|
<button class="small-round" type="submit" value="login">Login</button>
|
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
</main>
|
2025-01-06 00:41:32 +01:00
|
|
|
{{ end }}
|