other files inadvertently skipped in prev commit

This commit is contained in:
Disco DeDisco
2026-01-03 19:21:40 -05:00
parent a393628ca2
commit 8955d51474
3 changed files with 23 additions and 31 deletions

View File

@@ -1,17 +1,15 @@
<html>
<head>
<title>To-Do lists</title>
</head>
<body>
<h1>Your To-Do List</h1>
<form method="POST" action="/apps/dashboard/{{ list.id }}/add-item">
<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 list.item_set.all %}
<tr><td>{{ forloop.counter }}. {{ item.text }}</td></tr>
{% endfor %}
</table>
</body>
</html>
{% extends "core/base.html" %}
{% block title_text %}Your to-do list{% endblock title_text %}
{% block header_text %}Your to-do list{% endblock header_text %}
{% block form_action %}/apps/dashboard/{{ list.id }}/add-item{% endblock form_action %}
{% block table %}
<table id="id-list-table">
{% for item in list.item_set.all %}
<tr><td>{{ forloop.counter }}. {{ item.text }}</td></tr>
{% endfor %}
</table>
{% endblock table %}