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 -1
View File
@@ -4,6 +4,10 @@
<form method="POST">
{% csrf_token %}
{{ task_form|crispy }}
<button type="submit" hx-post=".">Submit</button>
{% if task %}
<button type="submit" hx-post="{% url 'tasks:task-update' task.id %}">Submit</button>
{% else %}
<button type="submit" hx-post=".">Submit</button>
{% endif %}
</form>
</div>