MYSPACE / templates /dashboard.html
justsomeonefrom's picture
Upload 2 files
e06e142 verified
raw
history blame contribute delete
2.78 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Dashboard | KV Student Data</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://cdn.tailwindcss.com"></script>
</head>
<body class="bg-gray-50 min-h-screen font-sans">
<nav class="bg-blue-600 text-white p-4 flex justify-between items-center shadow-md">
<h1 class="text-xl font-semibold">KV Student Dashboard</h1>
<div>
<a href="{{ url_for('download') }}"
class="bg-white text-blue-600 px-4 py-2 rounded-lg text-sm font-medium hover:bg-gray-100 mr-2">
⬇ Download Excel
</a>
<a href="{{ url_for('logout') }}"
class="bg-red-500 text-white px-4 py-2 rounded-lg text-sm font-medium hover:bg-red-600">
Logout
</a>
</div>
</nav>
<main class="p-6">
{% if data %}
<div class="overflow-x-auto rounded-lg shadow">
<table class="min-w-full bg-white">
<thead class="bg-blue-100 text-gray-700">
<tr>
<th class="py-3 px-4 text-left">Name</th>
<th class="py-3 px-4 text-left">DOB</th>
<th class="py-3 px-4 text-left">UBI ID</th>
<th class="py-3 px-4 text-left">Class</th>
<th class="py-3 px-4 text-left">School</th>
<th class="py-3 px-4 text-left">Enrolled</th>
</tr>
</thead>
<tbody>
{% for student in data %}
<tr class="border-t hover:bg-gray-50">
<td class="py-2 px-4">{{ student.name }}</td>
<td class="py-2 px-4">{{ student.dob }}</td>
<td class="py-2 px-4">{{ student.ubiId }}</td>
<td class="py-2 px-4">{{ student.class }}</td>
<td class="py-2 px-4">{{ student.school }}</td>
<td class="py-2 px-4">
{% if student.enrolled == "Yes" %}
<span class="text-green-600 font-semibold">Yes</span>
{% else %}
<span class="text-red-500 font-semibold">No</span>
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% else %}
<p class="text-center text-gray-500 mt-10 text-lg">No student data available yet. Please wait while it's being collected.</p>
{% endif %}
</main>
</body>
</html>