更新前端页面
This commit is contained in:
@@ -103,3 +103,24 @@ body {
|
|||||||
.modal-body .btn {
|
.modal-body .btn {
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.niceButton4{
|
||||||
|
height: 30px;
|
||||||
|
background-color: skyblue;
|
||||||
|
border: none;
|
||||||
|
border-radius: 10px;
|
||||||
|
color:white;
|
||||||
|
padding: 5px 5px;
|
||||||
|
text-align: center;
|
||||||
|
text-decoration: none;
|
||||||
|
display: inline-block;
|
||||||
|
font-size: 14px;
|
||||||
|
margin: 2px 2px;
|
||||||
|
cursor: pointer;
|
||||||
|
transition-duration: 0.4s;
|
||||||
|
-webkit-transition-duration: 0.4s;
|
||||||
|
}
|
||||||
|
.niceButton4:hover{
|
||||||
|
box-shadow: 0 2px 2px 0 rgba(0,0,0,.24),
|
||||||
|
0 17px 50px 0 rgba(0,0,0,.19);
|
||||||
|
}
|
||||||
|
|||||||
+28
-35
@@ -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="/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="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>
|
<script src="/static/js/mind/c_m_m.js"></script>
|
||||||
|
<style>
|
||||||
|
input{
|
||||||
|
background-color: #f8f6f6;
|
||||||
|
border-radius: 8px;
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
<script>
|
<script>
|
||||||
const DefaultView = function () {
|
const DefaultView = function () {
|
||||||
this.websocket = null
|
this.websocket = null
|
||||||
@@ -600,53 +607,39 @@
|
|||||||
</nav>
|
</nav>
|
||||||
<!-- 左侧菜单 end-->
|
<!-- 左侧菜单 end-->
|
||||||
<main class="col-md-10 ml-sm-auto col-lg-10 px-md-4">
|
<main class="col-md-10 ml-sm-auto col-lg-10 px-md-4">
|
||||||
<table>
|
<h1 style="margin-left: 500px">所有课程</h1>
|
||||||
<thead>
|
<table class="table" style="margin-left: 50px; width: 1100px">
|
||||||
<tr>
|
<tr style="text-align: center;" >
|
||||||
<th>课程id</th>
|
<td><h6>课程名字</h6></td>
|
||||||
<th>  </th>
|
<td><h6>老 师</h6></td>
|
||||||
<th>课程名字</th>
|
<td><h6>添加时间</h6></td>
|
||||||
<th>  </th>
|
<td><h6>课程介绍</h6></td>
|
||||||
<th>老师</th>
|
<td><h6>课程状态</h6></td>
|
||||||
<th>  </th>
|
<td><h6>操 作</h6></td>
|
||||||
<th>添加时间</th>
|
|
||||||
<th>  </th>
|
|
||||||
<th>课程介绍</th>
|
|
||||||
<th>  </th>
|
|
||||||
<th>课程状态</th>
|
|
||||||
<th>  </th>
|
|
||||||
<th>操作</th>
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
|
||||||
{% for kecheng in kechengs %}
|
{% for kecheng in kechengs %}
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr style="text-align: center;" >
|
||||||
<td>{{kecheng.class_id}}</td>
|
{# <td>{{kecheng.class_id}}</td>#}
|
||||||
<th>  </th>
|
|
||||||
<td>{{kecheng.class_name}}</td>
|
<td>{{kecheng.class_name}}</td>
|
||||||
<th>  </th>
|
|
||||||
<td>{{kecheng.tercher_name}}</td>
|
<td>{{kecheng.tercher_name}}</td>
|
||||||
<th>  </th>
|
|
||||||
<td>{{kecheng.add_time}}</td>
|
<td>{{kecheng.add_time}}</td>
|
||||||
<th>  </th>
|
|
||||||
<td>{{kecheng.class_info}}</td>
|
<td>{{kecheng.class_info}}</td>
|
||||||
<th>  </th>
|
|
||||||
<td>{{kecheng.class_status}}</td>
|
<td>{{kecheng.class_status}}</td>
|
||||||
<th>  </th>
|
|
||||||
<form method="post" action="{% url 'come_kecheng' %}">
|
|
||||||
<td>
|
<td>
|
||||||
<input type="text" style="display:none" name="class_name" value="{{ kecheng.class_name }}">
|
<form method="post" action="{% url 'come_kecheng' %}">
|
||||||
<input type="number" name="xiaozu" value="">小组
|
|
||||||
{% csrf_token %}
|
|
||||||
<button type="submit">加入课程</button>
|
|
||||||
</td>
|
|
||||||
</form>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
|
<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>
|
</tbody>
|
||||||
</table>
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{{ select }}
|
</table>
|
||||||
|
{# {{ select }}#}
|
||||||
</main>
|
</main>
|
||||||
<!-- 右侧内容 start-->
|
<!-- 右侧内容 start-->
|
||||||
|
|
||||||
|
|||||||
@@ -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="/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="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>
|
<script src="/static/js/mind/c_m_m.js"></script>
|
||||||
|
<style>
|
||||||
|
input, select{
|
||||||
|
background-color: #f8f6f6;
|
||||||
|
border-radius: 8px;
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
<script>
|
<script>
|
||||||
const DefaultView = function () {
|
const DefaultView = function () {
|
||||||
this.websocket = null
|
this.websocket = null
|
||||||
@@ -603,28 +610,55 @@
|
|||||||
{# {% if form.errors %}#}
|
{# {% if form.errors %}#}
|
||||||
{# <p>请修正表中的错误.</p>#}
|
{# <p>请修正表中的错误.</p>#}
|
||||||
{# {% endif %}#}
|
{# {% endif %}#}
|
||||||
|
<br><br>
|
||||||
<form method="post" action="{% url 'post_kecheng' %}">
|
<form method="post" action="{% url 'post_kecheng' %}">
|
||||||
<span>
|
{% csrf_token %}
|
||||||
课程ID:<input type="text" name="class_id">
|
<table class="center-table" style="margin-left: 100px">
|
||||||
</span>
|
<tr style="text-align: center;">
|
||||||
<span>
|
<td><h6>课程ID</h6></td>
|
||||||
课程名称:<input type="text" name="class_name">
|
<td><h6>课程名称</h6></td>
|
||||||
</span>
|
<td><h6>老师名称</h6></td>
|
||||||
<span>
|
<td><h6>课程介绍</h6></td>
|
||||||
老师姓名:<input type="text" name="tercher_name">
|
<td><h6>课程状态</h6></td>
|
||||||
</span>
|
<td><h6>操作</h6></td>
|
||||||
<span>
|
</tr>
|
||||||
课程介绍:<input type="text" name="class_info">
|
<tr style="text-align: center;">
|
||||||
</span>
|
<td><input type="text" name="class_id"></td>
|
||||||
<span>
|
<td><input type="text" name="class_name"></td>
|
||||||
课程状态:<select name="class_status">
|
<td><input type="text" name="tercher_name"></td>
|
||||||
|
<td><input type="text" name="class_info"></td>
|
||||||
|
<td>
|
||||||
|
<select name="class_status">
|
||||||
<option value="上课">上课</option>
|
<option value="上课">上课</option>
|
||||||
<option value="未开课">未开课</option>
|
<option value="未开课">未开课</option>
|
||||||
</select>
|
</select>
|
||||||
{% csrf_token %}
|
</td>
|
||||||
<button type="submit">发布课程</button>
|
<td><button type="submit" class="niceButton4">发布课程</button></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
</table>
|
||||||
</form>
|
</form>
|
||||||
|
{# <form method="post" action="{% url 'post_kecheng' %}">#}
|
||||||
|
{# <span>#}
|
||||||
|
{# 课程ID:<input type="text" name="class_id">#}
|
||||||
|
{# </span>#}
|
||||||
|
{# <span>#}
|
||||||
|
{# 课程名称:<input type="text" name="class_name">#}
|
||||||
|
{# </span>#}
|
||||||
|
{# <span>#}
|
||||||
|
{# 老师姓名:<input type="text" name="tercher_name">#}
|
||||||
|
{# </span>#}
|
||||||
|
{# <span>#}
|
||||||
|
{# 课程介绍:<input type="text" name="class_info">#}
|
||||||
|
{# </span>#}
|
||||||
|
{# <span>#}
|
||||||
|
{# 课程状态:<select name="class_status">#}
|
||||||
|
{# <option value="上课">上课</option>#}
|
||||||
|
{# <option value="未开课">未开课</option>#}
|
||||||
|
{# </select>#}
|
||||||
|
{# {% csrf_token %}#}
|
||||||
|
{# <button type="submit">发布课程</button>#}
|
||||||
|
{# </form>#}
|
||||||
{# <ul>#}
|
{# <ul>#}
|
||||||
{# {% for task in tasks %}#}
|
{# {% for task in tasks %}#}
|
||||||
{# <li>{{ task.title }} - {{ task.deadline }}</li>#}
|
{# <li>{{ task.title }} - {{ task.deadline }}</li>#}
|
||||||
|
|||||||
+49
-13
@@ -5,15 +5,22 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||||
<title>协作学习投入智能干预平台(学生端)</title>
|
<title>协作学习投入智能干预平台(学生端)</title>
|
||||||
<link rel="shortcut icon" href="/static/abl1b-qks1b-001.ico"/>
|
<link rel="shortcut icon" href="/static/abl1b-qks1b-001.ico"/>
|
||||||
<link rel="stylesheet" type="text/css" href="/static/css/dashboard.css">
|
|
||||||
<link rel="stylesheet" type="text/css" href="/static/bootstrap-4.6.1-dist/css/bootstrap.css">
|
|
||||||
|
|
||||||
|
<link rel="stylesheet" type="text/css" href="/static/bootstrap-4.6.1-dist/css/bootstrap.css">
|
||||||
|
<link rel="stylesheet" type="text/css" href="/static/css/dashboard.css">
|
||||||
<!--script start-->
|
<!--script start-->
|
||||||
<script src="/static/js/jquery-1.11.3.min.js"></script>
|
<script src="/static/js/jquery-1.11.3.min.js"></script>
|
||||||
<script src="https://cdn.staticfile.org/jquery-cookie/1.4.1/jquery.cookie.min.js"></script>
|
<script src="https://cdn.staticfile.org/jquery-cookie/1.4.1/jquery.cookie.min.js"></script>
|
||||||
<script src="/static/bootstrap-4.6.1-dist/js/bootstrap.bundle.js"></script> <!-- bootstrap.bundle.min.js,还包含了 Popper,用于支持工具提示(tooltip)和弹出框(popover)功能,但是不包含 jQuery。-->
|
<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="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>
|
<script src="/static/js/mind/c_m_m.js"></script>
|
||||||
|
<style>
|
||||||
|
input, textarea{
|
||||||
|
background-color: #f8f6f6;
|
||||||
|
border-radius: 8px;
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
<script>
|
<script>
|
||||||
const DefaultView = function () {
|
const DefaultView = function () {
|
||||||
this.websocket = null
|
this.websocket = null
|
||||||
@@ -604,18 +611,47 @@
|
|||||||
{# <p>请修正表中的错误.</p>#}
|
{# <p>请修正表中的错误.</p>#}
|
||||||
{# {% endif %}#}
|
{# {% endif %}#}
|
||||||
|
|
||||||
<form method="post" action="{% url 'post_task' %}">
|
{# <form method="post" action="{% url 'post_task' %}">#}
|
||||||
<span>
|
{# <span>#}
|
||||||
任务标题:<input type="text" name="title">
|
{# 任务标题:<input type="text" name="title">#}
|
||||||
</span>
|
{# </span>#}
|
||||||
<span>
|
{# <span>#}
|
||||||
任务计划描述:<input type="text" style="height:51px;width:449px" name="description">
|
{# 任务计划描述:<input type="text" style="height:51px;width:449px" name="description">#}
|
||||||
</span>
|
{# </span>#}
|
||||||
<span>
|
{# <span>#}
|
||||||
任务截至时间:<input type="datetime-local" class="form-control" placeholder="任务截至时间" name="deadline">
|
{# 任务截至时间:<input type="datetime-local" class="form-control" placeholder="任务截至时间" name="deadline">#}
|
||||||
</span>
|
{# </span>#}
|
||||||
|
{# {% csrf_token %}#}
|
||||||
|
{# <button type="submit">发布任务</button>#}
|
||||||
|
{# </form>#}
|
||||||
|
<br><br>
|
||||||
|
<form method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<button type="submit">发布任务</button>
|
<table class="center-table" style="margin-left: 200px">
|
||||||
|
<tr style="text-align: center;">
|
||||||
|
<td><h2>任务标题</h2></td>
|
||||||
|
</tr>
|
||||||
|
<tr style="text-align: center;">
|
||||||
|
<td><input type="text" name="title" style="width: 500px"></td>
|
||||||
|
</tr>
|
||||||
|
<tr style="text-align: center;">
|
||||||
|
<td><h3>任务计划描述</h3></td>
|
||||||
|
</tr>
|
||||||
|
<tr style="text-align: center;">
|
||||||
|
<td><textarea type="text" rows="10" cols="100" name="description"></textarea></td>
|
||||||
|
</tr>
|
||||||
|
<tr style="text-align: center;">
|
||||||
|
<td><h4>任务截至时间</h4></td>
|
||||||
|
</tr>
|
||||||
|
<tr style="text-align: center;">
|
||||||
|
<td><input type="datetime-local" class="form-control" placeholder="任务截至时间" name="deadline"></td>
|
||||||
|
</tr>
|
||||||
|
<tr style="text-align: center;">
|
||||||
|
<td><button type="submit" class="niceButton4">发布任务</button></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
</table>
|
||||||
|
{# <button type="submit">发布任务</button>#}
|
||||||
</form>
|
</form>
|
||||||
{# <ul>#}
|
{# <ul>#}
|
||||||
{# {% for task in tasks %}#}
|
{# {% for task in tasks %}#}
|
||||||
|
|||||||
+26
-9
@@ -600,17 +600,34 @@
|
|||||||
</nav>
|
</nav>
|
||||||
<!-- 左侧菜单 end-->
|
<!-- 左侧菜单 end-->
|
||||||
<main class="col-md-10 ml-sm-auto col-lg-10 px-md-4">
|
<main class="col-md-10 ml-sm-auto col-lg-10 px-md-4">
|
||||||
<h1>所有任务</h1>
|
<h1 style="margin-left: 500px">所有任务</h1>
|
||||||
<ul>
|
|
||||||
|
<table class="table" style="margin-left: 50px; width: 1000px">
|
||||||
|
<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>
|
||||||
|
</tr>
|
||||||
{% for task in tasks %}
|
{% for task in tasks %}
|
||||||
<li>
|
<tr style="text-align: center;">
|
||||||
<strong>{{ task.title }}</strong> - 发布者: {{ task.publisher }}
|
<td>{{ task.title }}</td>
|
||||||
<p>{{ task.description }}</p>
|
<td>{{ task.publisher }}</td>
|
||||||
<em>任务创建日期: {{ task.createline }}</em>
|
<td>{{ task.description }}</td>
|
||||||
<em>任务截止日期: {{ task.deadline }}</em>
|
<td>{{ task.publish_time }}</td>
|
||||||
</li>
|
<td>{{ task.deadline }}</td>
|
||||||
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</table>
|
||||||
|
{# {% for task in tasks %}#}
|
||||||
|
{# <li>#}
|
||||||
|
{# <strong>{{ task.title }}</strong> - 发布者: {{ task.publisher }}#}
|
||||||
|
{# <p>{{ task.description }}</p>#}
|
||||||
|
{# <em>任务创建日期: {{ task.createline }}</em>#}
|
||||||
|
{# <em>任务截止日期: {{ task.deadline }}</em>#}
|
||||||
|
{# </li>#}
|
||||||
|
{# {% endfor %}#}
|
||||||
</main>
|
</main>
|
||||||
<!-- 右侧内容 start-->
|
<!-- 右侧内容 start-->
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user