Update the table to a list of items and the header.
This commit is contained in:
@@ -9,4 +9,6 @@
|
|||||||
Add the TailwindCSS.
|
Add the TailwindCSS.
|
||||||
** 0.2.3 <2023-07-14 Fri>
|
** 0.2.3 <2023-07-14 Fri>
|
||||||
Update the main container block.
|
Update the main container block.
|
||||||
|
** 0.2.4 <2023-07-14 Fri>
|
||||||
|
Update the table to a list of items and the header.
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,13 @@
|
|||||||
|
<div 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>
|
||||||
|
</div>
|
||||||
@@ -2,20 +2,11 @@
|
|||||||
{% load static %}
|
{% load static %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<center><h1>Tasks</h1></center>
|
<h1 class="text-3xl font-bold text-center my-2">Tasks</h1>
|
||||||
|
|
||||||
<table class="table table-striped">
|
<div class="flex flex-col">
|
||||||
<tr>
|
|
||||||
<td>Status</td>
|
|
||||||
<td>Name</td>
|
|
||||||
<td>Description</td>
|
|
||||||
</tr>
|
|
||||||
{% for task in tasks %}
|
{% for task in tasks %}
|
||||||
<tr>
|
{% include "partials/task_item.html" %}
|
||||||
<td>{{ task.status }}</td>
|
|
||||||
<td>{{ task.name }}</td>
|
|
||||||
<td>{{ task.description | truncatewords:10 }}</td>
|
|
||||||
</tr>
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</table>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
Reference in New Issue
Block a user