created apps/dashboard/list.html template (for now, mirrors home.html); changes ListViewTest() to DashViewTest() in apps.dashboard.tests; added new list template test to same; updated view_list() FBV in .views to accomodate this new template

This commit is contained in:
Disco DeDisco
2026-01-02 19:50:27 -05:00
parent 47bf26ce49
commit 61c2c1bcb3
3 changed files with 23 additions and 2 deletions

View File

@@ -0,0 +1,17 @@
<html>
<head>
<title>To-Do lists</title>
</head>
<body>
<h1>Your To-Do List</h1>
<form method="POST" action="/">
<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>