Files
jsmind_xiezuo_project/static/html/post_task.html
T
2024-04-13 18:41:05 +08:00

25 lines
446 B
HTML

<!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>