17 lines
475 B
HTML
17 lines
475 B
HTML
<html>
|
|
<head>
|
|
<title>To-Do lists</title>
|
|
</head>
|
|
<body>
|
|
<h1>Your To-Do List</h1>
|
|
<form method="POST">
|
|
<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> |