45 lines
2.1 KiB
HTML
45 lines
2.1 KiB
HTML
|
|
<!DOCTYPE html>
|
||
|
|
<html lang="en">
|
||
|
|
<head>
|
||
|
|
<meta charset="UTF-8">
|
||
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
|
|
<title>WarpBox Admin Login</title>
|
||
|
|
<link rel="icon" type="image/png" href="/static/WarpBoxLogo.png">
|
||
|
|
<link rel="stylesheet" href="/static/css/app.css">
|
||
|
|
<link rel="stylesheet" href="/static/css/window.css">
|
||
|
|
<link rel="stylesheet" href="/static/css/admin.css">
|
||
|
|
</head>
|
||
|
|
<body>
|
||
|
|
<main>
|
||
|
|
<section class="win98-window admin-window" aria-labelledby="admin-login-title">
|
||
|
|
<header class="win98-titlebar">
|
||
|
|
<div class="win98-titlebar-label">
|
||
|
|
<img class="win98-titlebar-icon" src="/static/WarpBoxLogo.png" alt="" aria-hidden="true">
|
||
|
|
<h1 id="admin-login-title">WarpBox Admin</h1>
|
||
|
|
</div>
|
||
|
|
</header>
|
||
|
|
<div class="win98-panel admin-panel">
|
||
|
|
{{ if .Error }}
|
||
|
|
<p class="admin-error">{{ .Error }}</p>
|
||
|
|
{{ end }}
|
||
|
|
{{ if .AdminLoginEnabled }}
|
||
|
|
<form class="admin-form" action="/admin/login" method="post">
|
||
|
|
<label class="admin-form-row">
|
||
|
|
<span>Username</span>
|
||
|
|
<input name="username" autocomplete="username" required>
|
||
|
|
</label>
|
||
|
|
<label class="admin-form-row">
|
||
|
|
<span>Password</span>
|
||
|
|
<input name="password" type="password" autocomplete="current-password" required>
|
||
|
|
</label>
|
||
|
|
<button class="win98-button" type="submit">Login</button>
|
||
|
|
</form>
|
||
|
|
{{ else }}
|
||
|
|
<p>Administrator login is disabled. Set WARPBOX_ADMIN_PASSWORD and restart to bootstrap the first admin user.</p>
|
||
|
|
{{ end }}
|
||
|
|
</div>
|
||
|
|
</section>
|
||
|
|
</main>
|
||
|
|
</body>
|
||
|
|
</html>
|