This commit is contained in:
2024-04-22 21:34:49 +08:00
parent 27ee16bf3a
commit 35966f9914
19 changed files with 1517 additions and 31 deletions
+27
View File
@@ -583,6 +583,12 @@
任务发布页面
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/post_kecheng/">
<span data-feather="star"></span>
课程发布页面
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">
<span data-feather="trash-2"></span>
@@ -598,22 +604,43 @@
<thead>
<tr>
<th>课程id</th>
<th>&thinsp;&thinsp;</th>
<th>课程名字</th>
<th>&thinsp;&thinsp;</th>
<th>老师</th>
<th>&thinsp;&thinsp;</th>
<th>添加时间</th>
<th>&thinsp;&thinsp;</th>
<th>课程介绍</th>
<th>&thinsp;&thinsp;</th>
<th>课程状态</th>
<th>&thinsp;&thinsp;</th>
<th>操作</th>
</tr>
</thead>
{% for kecheng in kechengs %}
<tbody>
<tr>
<td>{{kecheng.class_id}}</td>
<th>&thinsp;&thinsp;</th>
<td>{{kecheng.class_name}}</td>
<th>&thinsp;&thinsp;</th>
<td>{{kecheng.tercher_name}}</td>
<th>&thinsp;&thinsp;</th>
<td>{{kecheng.add_time}}</td>
<th>&thinsp;&thinsp;</th>
<td>{{kecheng.class_info}}</td>
<th>&thinsp;&thinsp;</th>
<td>{{kecheng.class_status}}</td>
<th>&thinsp;&thinsp;</th>
<form method="post" action="{% url 'come_kecheng' %}">
<td>
<input type="text" style="display:none" name="class_name" value="{{ kecheng.class_name }}">
<input type="number" name="xiaozu" value="">小组
{% csrf_token %}
<button type="submit">加入课程</button>
</td>
</form>
</tr>
</tbody>