63 lines
2.0 KiB
HTML
63 lines
2.0 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<title>LinkLog Admin</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<link rel="stylesheet" href="/static/style.css" />
|
|
</head>
|
|
<body>
|
|
<header class="site-header">
|
|
<div class="container">
|
|
<div class="header-row">
|
|
<div>
|
|
<h1>LinkLog Admin</h1>
|
|
<p>Manage users and plugin configuration</p>
|
|
</div>
|
|
<div class="header-actions">
|
|
<a id="admin-login-button" class="login-button" href="/login">Sign in</a>
|
|
<button id="logout-button" class="logout-button hidden" type="button">Sign out</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
|
|
<main class="container">
|
|
<p id="admin-auth-notice" class="auth-notice hidden"></p>
|
|
<div id="admin-controls" class="hidden">
|
|
<section class="link-item settings-panel">
|
|
<h2>Users</h2>
|
|
<form id="user-form">
|
|
<label>
|
|
Username
|
|
<input name="username" type="text" required />
|
|
</label>
|
|
<label>
|
|
Email
|
|
<input name="email" type="email" required />
|
|
</label>
|
|
<label>
|
|
Password
|
|
<input name="password" type="password" minlength="8" required />
|
|
</label>
|
|
<label class="checkbox-label">
|
|
<input name="is_admin" type="checkbox" />
|
|
Administrator
|
|
</label>
|
|
<button type="submit">Add user</button>
|
|
<p id="user-status" class="status" role="status"></p>
|
|
</form>
|
|
<div id="user-list" class="plugin-list" aria-live="polite">Loading users...</div>
|
|
</section>
|
|
|
|
<section class="link-item settings-panel">
|
|
<h2>Plugins</h2>
|
|
<div id="plugin-list" class="plugin-list" aria-live="polite">Loading plugins...</div>
|
|
</section>
|
|
</div>
|
|
</main>
|
|
<script src="/static/logout.js?v=2"></script>
|
|
<script src="/static/admin.js?v=2"></script>
|
|
</body>
|
|
</html>
|