diff options
| author | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2019-03-27 18:03:45 +0000 |
|---|---|---|
| committer | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2019-03-27 18:03:45 +0000 |
| commit | 839a428d2bf1f13ce2d7629146d3b6b59caa776c (patch) | |
| tree | 1a1059da734efc967194f53d81e166077ba0b3f3 /app/templates/admin | |
| parent | bugfixes for dockerfile (diff) | |
| download | AnnotateChange-839a428d2bf1f13ce2d7629146d3b6b59caa776c.tar.gz AnnotateChange-839a428d2bf1f13ce2d7629146d3b6b59caa776c.zip | |
Add support for automatic task assignment
Diffstat (limited to 'app/templates/admin')
| -rw-r--r-- | app/templates/admin/manage.html | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/app/templates/admin/manage.html b/app/templates/admin/manage.html index 92aa6a5..e0c247a 100644 --- a/app/templates/admin/manage.html +++ b/app/templates/admin/manage.html @@ -2,10 +2,17 @@ {% import 'bootstrap/wtf.html' as wtf %} {% block app_content %} -<h1>Manage Tasks</h1> +<h1>Manage Tasks Automatically</h1> <div class="row"> <div class="col-md-4"> - {{ wtf.quick_form(form, button_map={'assign': 'primary', 'delete': 'danger'}) }} + {{ wtf.quick_form(form_auto, button_map={'assign': 'success'}) }} + </div> +</div> + +<h1>Manage Tasks Manually</h1> +<div class="row"> + <div class="col-md-4"> + {{ wtf.quick_form(form_manual, button_map={'assign': 'primary', 'delete': 'danger'}) }} </div> </div> <br> @@ -14,16 +21,16 @@ <table class="table table-striped"> <thead class="thead-dark"> <th scope="col">Task ID</th> - <th scope="col">Username</th> <th scope="col">Dataset Name</th> + <th scope="col">Username</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.username }}</td> <td>{{ task.dataset.name }}</td> + <td>{{ task.user.username }}</td> <td>{% if task.done %}Completed{% else %}Pending{% endif %}</td> <td>{% if task.done %}{{ task.annotated_on }}{% else %}{% endif %}</td> </tr> |
