Spaces:
Runtime error
Runtime error
Create attendance.html
Browse files- templates/attendance.html +73 -0
templates/attendance.html
ADDED
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en">
|
3 |
+
|
4 |
+
<head>
|
5 |
+
<meta charset="UTF-8">
|
6 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
7 |
+
<title>Attendance Table</title>
|
8 |
+
<!-- Bootstrap CSS -->
|
9 |
+
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
|
10 |
+
<style>
|
11 |
+
body {
|
12 |
+
background-color: #9bc6f1;
|
13 |
+
}
|
14 |
+
|
15 |
+
.container {
|
16 |
+
margin-top: 50px;
|
17 |
+
}
|
18 |
+
|
19 |
+
h1 {
|
20 |
+
color: #fdfffe;
|
21 |
+
text-align: center;
|
22 |
+
margin-bottom: 30px;
|
23 |
+
|
24 |
+
}
|
25 |
+
|
26 |
+
table {
|
27 |
+
background-color: #fff;
|
28 |
+
border-radius: 5px;
|
29 |
+
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
30 |
+
}
|
31 |
+
|
32 |
+
thead {
|
33 |
+
background-color: #343a40;
|
34 |
+
color: #fff;
|
35 |
+
text-align: center;
|
36 |
+
}
|
37 |
+
|
38 |
+
tbody tr:nth-child(even) {
|
39 |
+
background-color: #f8f9fa;
|
40 |
+
|
41 |
+
}
|
42 |
+
|
43 |
+
td{
|
44 |
+
text-align: center;
|
45 |
+
}
|
46 |
+
</style>
|
47 |
+
</head>
|
48 |
+
|
49 |
+
<body>
|
50 |
+
<div class="container">
|
51 |
+
<h1><b>Attendance Table</b></h1>
|
52 |
+
<table class="table table-bordered">
|
53 |
+
<thead>
|
54 |
+
<tr>
|
55 |
+
<th>Name</th>
|
56 |
+
<th>Time</th>
|
57 |
+
<th>Status</th>
|
58 |
+
</tr>
|
59 |
+
</thead>
|
60 |
+
<tbody>
|
61 |
+
{% for row in attendance %}
|
62 |
+
<tr>
|
63 |
+
<td>{{ row[0] }}</td>
|
64 |
+
<td>{{ row[1] }}</td>
|
65 |
+
<td>{{ row[2] }}</td>
|
66 |
+
</tr>
|
67 |
+
{% endfor %}
|
68 |
+
</tbody>
|
69 |
+
</table>
|
70 |
+
</div>
|
71 |
+
</body>
|
72 |
+
|
73 |
+
</html>
|