更新前端页面
This commit is contained in:
+35
-42
@@ -14,6 +14,13 @@
|
||||
<script src="/static/bootstrap-4.6.1-dist/js/bootstrap.bundle.js"></script> <!-- bootstrap.bundle.min.js,还包含了 Popper,用于支持工具提示(tooltip)和弹出框(popover)功能,但是不包含 jQuery。-->
|
||||
<script src="https://cdn.jsdelivr.net/npm/feather-icons@4.28.0/dist/feather.min.js"></script> <!-- 图标相关-->
|
||||
<script src="/static/js/mind/c_m_m.js"></script>
|
||||
<style>
|
||||
input{
|
||||
background-color: #f8f6f6;
|
||||
border-radius: 8px;
|
||||
border: none;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
const DefaultView = function () {
|
||||
this.websocket = null
|
||||
@@ -600,53 +607,39 @@
|
||||
</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>
|
||||
<th>添加时间</th>
|
||||
<th>  </th>
|
||||
<th>课程介绍</th>
|
||||
<th>  </th>
|
||||
<th>课程状态</th>
|
||||
<th>  </th>
|
||||
<th>操作</th>
|
||||
<h1 style="margin-left: 500px">所有课程</h1>
|
||||
<table class="table" style="margin-left: 50px; width: 1100px">
|
||||
<tr style="text-align: center;" >
|
||||
<td><h6>课程名字</h6></td>
|
||||
<td><h6>老 师</h6></td>
|
||||
<td><h6>添加时间</h6></td>
|
||||
<td><h6>课程介绍</h6></td>
|
||||
<td><h6>课程状态</h6></td>
|
||||
<td><h6>操 作</h6></td>
|
||||
</tr>
|
||||
</thead>
|
||||
{% for kecheng in kechengs %}
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>{{kecheng.class_id}}</td>
|
||||
<th>  </th>
|
||||
<td>{{kecheng.class_name}}</td>
|
||||
<th>  </th>
|
||||
<td>{{kecheng.tercher_name}}</td>
|
||||
<th>  </th>
|
||||
<td>{{kecheng.add_time}}</td>
|
||||
<th>  </th>
|
||||
<td>{{kecheng.class_info}}</td>
|
||||
<th>  </th>
|
||||
<td>{{kecheng.class_status}}</td>
|
||||
<th>  </th>
|
||||
<form method="post" action="{% url 'come_kecheng' %}">
|
||||
<tbody>
|
||||
<tr style="text-align: center;" >
|
||||
{# <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>
|
||||
<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>
|
||||
<form method="post" action="{% url 'come_kecheng' %}">
|
||||
|
||||
</tbody>
|
||||
<input type="text" style="display:none" name="class_name" value="{{ kecheng.class_name }}">
|
||||
<input type="number" name="xiaozu" value="" style="width: 50px">小组
|
||||
{% csrf_token %}
|
||||
<button type="submit" class="niceButton4">加入课程</button>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
{% endfor %}
|
||||
</table>
|
||||
{% endfor %}
|
||||
{{ select }}
|
||||
{# {{ select }}#}
|
||||
</main>
|
||||
<!-- 右侧内容 start-->
|
||||
|
||||
|
||||
Reference in New Issue
Block a user