Add the action to set the circular next status for Task items.
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
<div hx-target="this" class="p-2 border rounded-lg inline-flex gap-2 my-2 bg-gray-200">
|
||||
{% if task.status == "TODO" %}
|
||||
<p class="font-semibold text-green-500">
|
||||
<p class="font-semibold text-green-500"
|
||||
{% elif task.status == "DOING" %}
|
||||
<p class="font-semibold text-yellow-500">
|
||||
<p class="font-semibold text-yellow-500"
|
||||
{% elif task.status == "DONE" or task.status == "CANCELED" %}
|
||||
<p class="font-semibold text-gray-500">
|
||||
<p class="font-semibold text-gray-500"
|
||||
{% endif %}
|
||||
hx-post="{% url 'tasks:task-set-circular-next-status' task.id %}"
|
||||
hx-swap="outerHTML">
|
||||
{{ task.status }}
|
||||
</p>
|
||||
<p class="font-semibold">{{ task.name }}</p>
|
||||
|
||||
Reference in New Issue
Block a user