aboutsummaryrefslogtreecommitdiff
path: root/app/templates/admin/manage.html
diff options
context:
space:
mode:
authorGertjan van den Burg <gertjanvandenburg@gmail.com>2019-03-19 15:55:35 +0000
committerGertjan van den Burg <gertjanvandenburg@gmail.com>2019-03-19 15:55:35 +0000
commitd06c8ccae125a81eba25f52f30d7da3c1a2bd907 (patch)
tree0c61953c155d8e3f44d4676137685d858a582548 /app/templates/admin/manage.html
parentlanguage (diff)
downloadAnnotateChange-d06c8ccae125a81eba25f52f30d7da3c1a2bd907.tar.gz
AnnotateChange-d06c8ccae125a81eba25f52f30d7da3c1a2bd907.zip
Allow task deletion from management panel
Diffstat (limited to 'app/templates/admin/manage.html')
-rw-r--r--app/templates/admin/manage.html36
1 files changed, 36 insertions, 0 deletions
diff --git a/app/templates/admin/manage.html b/app/templates/admin/manage.html
new file mode 100644
index 0000000..aaff8ff
--- /dev/null
+++ b/app/templates/admin/manage.html
@@ -0,0 +1,36 @@
+{% extends "base.html" %}
+{% import 'bootstrap/wtf.html' as wtf %}
+
+{% block app_content %}
+<h1>Assign Task</h1>
+<div class="row">
+ <div class="col-md-4">
+ {{ wtf.quick_form(form, button_map={'assign': 'primary', 'delete': 'danger'}) }}
+ </div>
+</div>
+<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.completed_on }}</td>
+ </tr>
+ {% endfor %}
+ </tr>
+ </table>
+</article>
+{% endblock %}