From da15e439e64c8314825ad5f28073fbcbd436946f Mon Sep 17 00:00:00 2001 From: Gertjan van den Burg Date: Thu, 30 May 2019 13:29:31 +0100 Subject: Initial version of demo This commit introduces the demo functionality. The task assignment has been removed at the moment, as this will be changed in a future commit. --- app/templates/_partials/modals.html | 21 ++++ app/templates/admin/annotations_by_dataset.html | 2 +- app/templates/admin/manage_datasets.html | 20 ++-- app/templates/admin/manage_users.html | 116 +++++++++--------- app/templates/annotate/index.html | 64 +++------- app/templates/base.html | 35 +++--- app/templates/demo/evaluate.html | 49 ++++++++ app/templates/demo/learn.html | 23 ++++ app/templates/index.html | 153 ++++++++++++++---------- 9 files changed, 288 insertions(+), 195 deletions(-) create mode 100644 app/templates/_partials/modals.html create mode 100644 app/templates/demo/evaluate.html create mode 100644 app/templates/demo/learn.html (limited to 'app/templates') diff --git a/app/templates/_partials/modals.html b/app/templates/_partials/modals.html new file mode 100644 index 0000000..1ffd85f --- /dev/null +++ b/app/templates/_partials/modals.html @@ -0,0 +1,21 @@ +{% macro modal(id, title, message) %} + + +{% endmacro %} diff --git a/app/templates/admin/annotations_by_dataset.html b/app/templates/admin/annotations_by_dataset.html index 5ad98b6..eb7a7e8 100644 --- a/app/templates/admin/annotations_by_dataset.html +++ b/app/templates/admin/annotations_by_dataset.html @@ -1,7 +1,7 @@ {% extends "base.html" %} {% block styles %} -{{super()}} +{{ super() }} {% endblock %} {% block app_content %} diff --git a/app/templates/admin/manage_datasets.html b/app/templates/admin/manage_datasets.html index f14fe81..f68259f 100644 --- a/app/templates/admin/manage_datasets.html +++ b/app/templates/admin/manage_datasets.html @@ -42,18 +42,20 @@ ID Name - Assigned Tasks - Completed Tasks - Percentage + Demo + Assigned Tasks + Completed Tasks + Percentage {% for entry in overview %} - {{ entry['id'] }} - {{ entry['name'] }} - {{ entry['assigned'] }} - {{ entry['completed'] }} - {{ entry['percentage'] }} - + {{ entry['id'] }} + {{ entry['name'] }} + {% if entry['demo'] %}Yes{% else %}No{% endif %} + {{ entry['assigned'] }} + {{ entry['completed'] }} + {{ entry['percentage'] }} + {% endfor %} diff --git a/app/templates/admin/manage_users.html b/app/templates/admin/manage_users.html index 5c44a48..8788958 100644 --- a/app/templates/admin/manage_users.html +++ b/app/templates/admin/manage_users.html @@ -1,70 +1,72 @@ {% extends "base.html" %} {% block app_content %} -

Manage Users

+

Manage Users

-
+
-
- {{ form.hidden_tag() }} - {{ form.user }} - {{ form.delete(hidden='true', id='form-submit') }} - - -
+
+ {{ form.hidden_tag() }} + {{ form.user }} + {{ form.delete(hidden='true', id='form-submit') }} + + +
-
+
- -