Initial commit
This commit is contained in:
36
xuexiao/templates/schedule_list.html
Normal file
36
xuexiao/templates/schedule_list.html
Normal file
@@ -0,0 +1,36 @@
|
||||
{% extends "base.html" %}
|
||||
{% block title %}课程安排 - 学生课程管理系统{% endblock %}
|
||||
{% block content %}
|
||||
<div class="d-flex justify-content-between align-items-center mb-3">
|
||||
<h4><i class="bi bi-calendar-event"></i> 课程安排</h4>
|
||||
<a href="{{ url_for('schedule_add') }}" class="btn btn-primary"><i class="bi bi-plus-circle"></i> 新增安排</a>
|
||||
{% if current_user.has_permission('schedule_export') %}<a href="{{ url_for('schedule_export') }}" class="btn btn-success"><i class="bi bi-file-earmark-excel"></i> 导出</a>{% endif %}
|
||||
</div>
|
||||
<div class="card shadow-sm">
|
||||
<div class="card-body">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover table-bordered">
|
||||
<thead class="table-light">
|
||||
<tr><th>ID</th><th>日期</th><th>时间</th><th>班级</th><th>课程</th><th>老师</th><th>主题</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for s in schedules %}
|
||||
<tr>
|
||||
<td>{{ s.id }}</td>
|
||||
<td>{{ s.date }}</td>
|
||||
<td>{{ s.start_time }} - {{ s.end_time }}</td>
|
||||
<td>{{ s.class_.name }}</td>
|
||||
<td>{{ s.class_.course.name }}</td>
|
||||
<td>{{ s.teacher.name }}</td>
|
||||
<td>{{ s.topic or '-' }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
{% if not schedules %}
|
||||
<tr><td colspan="7" class="text-center text-muted">暂无课程安排</td></tr>
|
||||
{% endif %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user