optimize the views

This commit is contained in:
lzh
2020-08-05 20:29:56 +08:00
parent a3bd5cd4df
commit 8e9e67051b
4 changed files with 56 additions and 77 deletions
@@ -19,10 +19,10 @@
学生专业:<input type="text" name="stu_major"/><br>
<input class="bc" type="submit" value="保存"/>
{% if error %}
<h5>{{ error }}</h5><br>
<h5 style="color: red">{{ error }}</h5><br>
{% endif %}
{% if sucess %}
<h5>{{ sucess }}</h5><br>
<h5 style="color: greenyellow">{{ sucess }}</h5><br>
{% endif %}
</form>
</body>
@@ -5,16 +5,18 @@
<title>Title</title>
</head>
<body>
<br>
{% if lenght %}
<a href="/student/logout/">退出</a><br>
<h1 style="color: blue">欢迎{{ status}},来到学生信息管理系统</h1><br>
<h3 style="color: green">请选择你要执行的功能</h3>
<a href="{% url 'student:add' %}">增加学生信息</a><br>
<a href="{% url 'student:select' %}">查询学生信息</a><br>
<a href="{% url 'student:delete' %}">删除学生信息</a><br>
<a href="{% url 'student:update' %}">修改学生信息</a><br>
<br>
<a href="/student/logout/">退出</a><br>
{% else %}
<h3 style="color: green">请选择操作</h3><br>
<a href="student/login/">登录</a><br>
<a href="student/regist/">注册</a><br>
{% endif %}