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