diff options
Diffstat (limited to 'app/templates/admin/manage.html')
| -rw-r--r-- | app/templates/admin/manage.html | 36 |
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 %} |
