new code
This commit is contained in:
@@ -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