blob: 1bba7697c4994bc289e0aee6fa6b994f02d5d49e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
{% extends "base.html" %}
{% import 'bootstrap/wtf.html' as wtf %}
{% block app_content %}
<h1>Manage Tasks</h1>
<div class="row">
<div class="col-md-4">
{{ wtf.quick_form(form, button_map={'assign': 'primary', 'delete': 'danger'}) }}
</div>
</div>
<br>
<h1>Task Overview</h1>
<article class="overview">
<table class="table table-striped">
<thead class="thead-dark">
<th scope="col">Task ID</th>
<th scope="col">User ID</th>
<th scope="col">Username</th>
<th scope="col">Dataset ID</th>
<th scope="col">Dataset Name</th>
<th scope="col">Status</th>
<th scope="col">Completed On</th>
</thead>
{% for task in tasks %}
<tr>
<th scope="row">{{ task.id }}</th>
<td>{{ task.user.id }}</td>
<td>{{ task.user.username }}</td>
<td>{{ task.dataset.id }}</td>
<td>{{ task.dataset.name }}</td>
<td>{% if task.done %}Completed{% else %}Pending{% endif %}</td>
<td>{{ task.annotated_on }}</td>
</tr>
{% endfor %}
</tr>
</table>
</article>
{% endblock %}
|