2020-11-11 14:19:55 +11:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>To-Do lists</title>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<h1>Your To-Do list</h1>
|
2020-11-11 14:35:01 +11:00
|
|
|
<form method="POST" action="/lists/new">
|
2020-11-11 14:19:55 +11:00
|
|
|
<input name="item_text" id="id_new_item" placeholder="Enter a to-do item" />
|
|
|
|
{% csrf_token %}
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<table id="id_list_table">
|
|
|
|
{% for item in items %}
|
|
|
|
<tr><td>{{ forloop.counter }}: {{ item.text }}</td></tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
</body>
|
|
|
|
</html>
|