Add the cancel button for a task form.

This commit is contained in:
2023-07-21 15:20:44 +03:00
parent 5e202fb29c
commit 4fed486a58
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -19,4 +19,6 @@
Add the delete button for a task.
** 0.3.2 <2023-07-20 Thu>
Add the update button for a task.
** 0.3.3 <2023-07-21 Fri>
Add the cancel button for a task form.
+1
View File
@@ -6,6 +6,7 @@
{{ task_form|crispy }}
{% if task %}
<button type="submit" hx-post="{% url 'tasks:task-update' task.id %}">Submit</button>
<button hx-post="{% url 'tasks:task-item' task.id %}">Cancel</button>
{% else %}
<button type="submit" hx-post=".">Submit</button>
{% endif %}