Add the update button for a task.

This commit is contained in:
2023-07-20 19:28:44 +03:00
parent a929846d13
commit 5e202fb29c
5 changed files with 29 additions and 1 deletions
+5
View File
@@ -11,6 +11,11 @@
<p class="font-semibold">{{ task.name }}</p>
<p>{{ task.description | truncatewords:10 }}</p>
<button type="button"
hx-post="{% url 'tasks:task-update' task.id %}"
hx-swap="outerHTML">
Update
</button>
<button type="button"
hx-post="{% url 'tasks:task-delete' task.id %}"
hx-swap="outerHTML">