You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
743 B
25 lines
743 B
<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">
|
|
{% elif task.status == "DOING" %}
|
|
<p class="font-semibold text-yellow-500">
|
|
{% elif task.status == "DONE" or task.status == "CANCELED" %}
|
|
<p class="font-semibold text-gray-500">
|
|
{% endif %}
|
|
{{ task.status }}
|
|
</p>
|
|
<p class="font-semibold">{{ task.name }}</p>
|
|
<p>{{ task.description | truncatewords:10 }}</p>
|
|
|
|
<button type="button"
|
|
hx-post="{% url 'tasks:task-update' task.id %}"
|
|
hx-swap="outerHTML">
|
|
Update
|
|
</button>
|
|
<button type="button"
|
|
hx-post="{% url 'tasks:task-delete' task.id %}"
|
|
hx-swap="outerHTML">
|
|
Delete
|
|
</button>
|
|
</div>
|