Update the table to a list of items and the header.

This commit is contained in:
2023-07-14 19:12:46 +03:00
parent 797b36be61
commit cddbb028bd
3 changed files with 19 additions and 13 deletions
+4 -13
View File
@@ -2,20 +2,11 @@
{% load static %}
{% block content %}
<center><h1>Tasks</h1></center>
<h1 class="text-3xl font-bold text-center my-2">Tasks</h1>
<table class="table table-striped">
<tr>
<td>Status</td>
<td>Name</td>
<td>Description</td>
</tr>
<div class="flex flex-col">
{% for task in tasks %}
<tr>
<td>{{ task.status }}</td>
<td>{{ task.name }}</td>
<td>{{ task.description | truncatewords:10 }}</td>
</tr>
{% include "partials/task_item.html" %}
{% endfor %}
</table>
</div>
{% endblock %}