CRUD for tasks, dirs and options.

Added flash messages
This commit is contained in:
simon
2018-03-07 20:00:10 -05:00
parent 1602f47b4e
commit eab21fbfe6
9 changed files with 251 additions and 65 deletions

View File

@@ -32,22 +32,29 @@
<div class="panel-heading">An excellent panel</div>
<div class="panel-body">
<table class="info-table">
<table class="info-table table-hover table-striped">
<thead>
<tr>
<th>Task type</th>
<th>Directory</th>
<th>Completed</th>
<th>Action</th>
</tr>
</thead>
{% for task in tasks %}
<tbody>
{% for task_id in tasks %}
<tr>
<td>{{ task.type }}</td>
<td>{{ directories[task.dir_id].name }}</td>
<td>{{ task.completed }}</td>
<td>{{ tasks[task_id].type }}</td>
<td>{{ directories[tasks[task_id].dir_id].name }}</td>
<td>{{ tasks[task_id].completed }}</td>
<td><a class="btn btn-danger" href="/task/{{ task_id }}/del">Cancel</a></td>
</tr>
{% endfor %}
</tbody>
</table>