You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.2 KiB
38 lines
1.2 KiB
1 month ago
|
<!DOCTYPE html>
|
||
|
<html lang="en">
|
||
|
<head>
|
||
|
<meta charset="UTF-8">
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
|
<title>我的班级</title>
|
||
|
<link href="static/plugins/bootstrap-4.6.2/css/bootstrap.min.css" rel="stylesheet">
|
||
|
</head>
|
||
|
<body>
|
||
|
<div class="container mt-4">
|
||
|
<h1 class="text-center">我的班级</h1>
|
||
|
<table class="table table-striped mt-4">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th>ID</th>
|
||
|
<th>姓名</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
{% if students %}
|
||
|
{% for student in students %}
|
||
|
<tr>
|
||
|
<td>{{ student['id'] }}</td>
|
||
|
<td>{{ student['name'] }}</td>
|
||
|
</tr>
|
||
|
{% endfor %}
|
||
|
{% else %}
|
||
|
<tr>
|
||
|
<td colspan="2" class="text-center">没有找到任何学生数据。</td>
|
||
|
</tr>
|
||
|
{% endif %}
|
||
|
</tbody>
|
||
|
</table>
|
||
|
<a href="/" class="btn btn-primary">返回首页</a>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|