This commit is contained in:
2024-04-13 18:41:05 +08:00
parent b3b471ef69
commit dadba0dde5
8 changed files with 108 additions and 42 deletions
+25
View File
@@ -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>