1
This commit is contained in:
77
templates/admin/index.html
Normal file
77
templates/admin/index.html
Normal file
@@ -0,0 +1,77 @@
|
||||
<!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>
|
||||
Reference in New Issue
Block a user