Improve on the template, most things work???

This commit is contained in:
Charles Descamps 2025-06-03 21:13:39 -07:00
parent c0f9876184
commit 46fa0d1ae5
19 changed files with 396 additions and 181 deletions

View file

@ -0,0 +1,29 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Admin Dashboard</title>
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
</head>
<body>
{% include 'base.html' %}
<div class="container">
<h1>Admin Dashboard</h1>
<div class="admin-controls">
<h2>Manage Repair Bays</h2>
<button onclick="location.href='{{ url_for('admin.create_repair_bay') }}'">Create Repair Bay</button>
<button onclick="location.href='{{ url_for('admin.remove_repair_bay') }}'">Remove Repair Bay</button>
</div>
<div class="user-management">
<h2>User Management</h2>
<button onclick="location.href='{{ url_for('admin.create_user') }}'">Create User</button>
<button onclick="location.href='{{ url_for('admin.remove_user') }}'">Remove User</button>
</div>
<div class="reports">
<h2>Reports</h2>
<button onclick="location.href='{{ url_for('admin.view_reports') }}'">View Reports</button>
</div>
</div>
</body>
</html>