77 lines
1.7 KiB
HTML
77 lines
1.7 KiB
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<script src="https://unpkg.com/htmx.org"></script>
|
|
<script src="https://cdn.tailwindcss.com"></script>
|
|
|
|
<title>RFID Admin</title>
|
|
</head>
|
|
|
|
<body class="bg-gray-950 text-white min-h-screen">
|
|
|
|
<div class="flex">
|
|
|
|
<!-- SIDEBAR -->
|
|
|
|
<div class="w-72 bg-gray-900 min-h-screen p-4 border-r border-gray-800">
|
|
|
|
<h1 class="text-3xl font-bold mb-6">
|
|
RFID Admin
|
|
</h1>
|
|
|
|
<div class="space-y-2">
|
|
|
|
<button
|
|
hx-get="/admin/students"
|
|
hx-target="#content"
|
|
class="w-full bg-gray-800 hover:bg-gray-700 p-3 rounded text-left"
|
|
>
|
|
Students
|
|
</button>
|
|
|
|
<button
|
|
hx-get="/admin/unknown"
|
|
hx-target="#content"
|
|
class="w-full bg-gray-800 hover:bg-gray-700 p-3 rounded text-left"
|
|
>
|
|
Unknown Cards
|
|
</button>
|
|
|
|
<button
|
|
hx-get="/admin/rooms"
|
|
hx-target="#content"
|
|
class="w-full bg-gray-800 hover:bg-gray-700 p-3 rounded text-left"
|
|
>
|
|
Rooms
|
|
</button>
|
|
|
|
<button
|
|
hx-get="/admin/anomalies"
|
|
hx-target="#content"
|
|
class="w-full bg-gray-800 hover:bg-gray-700 p-3 rounded text-left"
|
|
>
|
|
Anomalies
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- MAIN -->
|
|
|
|
<div class="flex-1 p-6">
|
|
|
|
<div
|
|
id="content"
|
|
hx-get="/admin/students"
|
|
hx-trigger="load"
|
|
hx-swap="innerHTML"
|
|
>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
</html> |