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
+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 %}