Add the cancel button for a task form.
This commit is contained in:
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user