redefined & added arguments to existing FBVs in apps.dashboard.views; added new FBV to add to-do items to existing lists; added capture groups to some paths in .urls (tho these are now due for DRY refactor); django templating added to form action in templates/apps/dashboard/list.html; DashViewTest(), NewListTest() & NewItemTest() refactored for dynamic ids in .tests

This commit is contained in:
Disco DeDisco
2026-01-03 01:30:51 -05:00
parent b09bec02dc
commit ada383c81a
4 changed files with 58 additions and 15 deletions

View File

@@ -4,7 +4,7 @@
</head>
<body>
<h1>Your To-Do List</h1>
<form method="POST" action="/apps/dashboard/newlist">
<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>