new code
This commit is contained in:
@@ -610,7 +610,7 @@
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="#">
|
||||
<a class="nav-link" href="/reng_wu">
|
||||
<span data-feather="star"></span>
|
||||
任务详情
|
||||
</a>
|
||||
|
||||
+24
-22
@@ -588,29 +588,31 @@
|
||||
</nav>
|
||||
<!-- 左侧菜单 end-->
|
||||
<main class="col-md-10 ml-sm-auto col-lg-10 px-md-4">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>课程id</th>
|
||||
<th>课程名字</th>
|
||||
<th>老师</th>
|
||||
<th>添加时间</th>
|
||||
<th>课程介绍</th>
|
||||
<th>课程状态</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>ADG3232</td>
|
||||
<td>计算机操作系统</td>
|
||||
<td>小安</td>
|
||||
<td>2024-02-25 21:13:29</td>
|
||||
<td>这是一门关于计算机操作系统的课程</td>
|
||||
<td>上课</td>
|
||||
</tr>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>课程id</th>
|
||||
<th>课程名字</th>
|
||||
<th>老师</th>
|
||||
<th>添加时间</th>
|
||||
<th>课程介绍</th>
|
||||
<th>课程状态</th>
|
||||
</tr>
|
||||
</thead>
|
||||
{% for kecheng in kechengs %}
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>{{kecheng.class_id}}</td>
|
||||
<td>{{kecheng.class_name}}</td>
|
||||
<td>{{kecheng.tercher_name}}</td>
|
||||
<td>{{kecheng.add_time}}</td>
|
||||
<td>{{kecheng.class_info}}</td>
|
||||
<td>{{kecheng.class_status}}</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</tbody>
|
||||
</table>
|
||||
{% endfor %}
|
||||
</main>
|
||||
<!-- 右侧内容 start-->
|
||||
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Title</title>
|
||||
</head>
|
||||
<body>
|
||||
{% if form.errors %}
|
||||
<p>请修正表中的错误.</p>
|
||||
{% endif %}
|
||||
|
||||
<form method="post">
|
||||
{% csrf_token %}
|
||||
{{ form.as_p }}
|
||||
<button type="submit">发布任务</button>
|
||||
</form>
|
||||
|
||||
<h2>任务列表</h2>
|
||||
<ul>
|
||||
{% for task in tasks %}
|
||||
<li>{{ task.title }} - {{ task.deadline }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user