diff --git a/atlas/templates/atlas/collection_view.html b/atlas/templates/atlas/collection_view.html index 55be8928..983c3ad9 100644 --- a/atlas/templates/atlas/collection_view.html +++ b/atlas/templates/atlas/collection_view.html @@ -5,19 +5,19 @@ {% block content %} -
-
-

Collections

- {% if request.user.is_staff %} - Create collection - {% endif %} +
+
+

Collections

+ {% if request.user.is_staff %} + Create collection + {% endif %} +
+ +

Manage and browse case collections. Use filters to narrow results.

+ + {% render_table table %} + + {% include "generic/partials/filter_bar.html" with filter=filter app_name=app_name collapse_id="bottom-filter-body" %}
-

Manage and browse case collections. Use filters to narrow results.

- - {% render_table table %} - - {% include "generic/partials/filter_bar.html" with filter=filter app_name=app_name collapse_id="bottom-filter-body" %} -
- {% endblock %} diff --git a/atlas/templates/atlas/series_view.html b/atlas/templates/atlas/series_view.html index cbd5eb12..05debd21 100755 --- a/atlas/templates/atlas/series_view.html +++ b/atlas/templates/atlas/series_view.html @@ -34,42 +34,41 @@ {% render_table table %}
- + checked.forEach(cb => { + const hidden = document.createElement('input'); + hidden.type = 'hidden'; + hidden.name = 'series_ids'; + hidden.value = cb.value; + this.appendChild(hidden); + }); + }); +
{% endblock %} {% block js %} {% endblock %} {% block css %} + {% endblock css %} - \ No newline at end of file diff --git a/atlas/templates/atlas/task_overview.html b/atlas/templates/atlas/task_overview.html index 54e1a6c9..460407c9 100644 --- a/atlas/templates/atlas/task_overview.html +++ b/atlas/templates/atlas/task_overview.html @@ -5,199 +5,199 @@ {% block content_container_class %}container-fluid content-wide px-3{% endblock %} {% block title %} -Atlas Task Overview + Atlas Task Overview {% endblock title %} {% block content %} -
- -
-

Atlas Task Overview

- -
- - {% if backend_missing %} -
- django_tasks_db backend is not available in this environment. Install and migrate it to see task records. -
- {% endif %} - -
-
-
-
-
Active
-
{{ counts.active }}
-
-
-
-
-
-
-
Completed
-
{{ counts.completed }}
-
-
-
-
-
-
-
Failed
-
{{ counts.failed }}
-
-
-
-
- -
- {% csrf_token %} -
- - -
- - -
-
- -
- - - - - - - - - - - - - - - - - - {% for task in tasks %} - - - - - - - - - - - - - - {% if task.traceback %} - - - - - {% endif %} - {% empty %} - - - - {% endfor %} - -
TaskStatusGenerated SeriesQueueEnqueuedStartedFinishedWorkerErrorActions
- - -
{{ task.task_path }}
-
{{ task.id }}
-
- {% if task.status == "FAILED" %} - {{ task.status }} - {% elif task.status == "SUCCESSFUL" %} - {{ task.status }} - {% elif task.status == "RUNNING" or task.status == "READY" %} - {{ task.status }} - {% else %} - {{ task.status }} - {% endif %} - - {% if task.generated_series %} - {% for series in task.generated_series %} - {{ series.description }} - {% endfor %} - {% else %} - - - {% endif %} - {{ task.queue_name }}{{ task.enqueued_at|date:"Y-m-d H:i:s" }}{{ task.started_at|date:"Y-m-d H:i:s" }}{{ task.finished_at|date:"Y-m-d H:i:s" }}{{ task.worker_ids }}{{ task.exception_class_path|default:"" }} - {% if task.traceback %} - - {% else %} - - - {% endif %} -
-
-
Full traceback
-
{{ task.traceback }}
-
-
No tasks found for this filter.
-
-
- - -
+ })(); + + {% endblock content %} diff --git a/generic/templates/generic/cid_view.html b/generic/templates/generic/cid_view.html index 7a9d7785..a7d753e7 100644 --- a/generic/templates/generic/cid_view.html +++ b/generic/templates/generic/cid_view.html @@ -47,78 +47,78 @@
Edit CID exams

This should be done via the exams pages one via group management.

-

Select exams below to add user(s) to (or edit existing user(s)).

-
- - Physics Exams
- + {% for name, id in physics_exams %} + + {% endfor %} - -
- - Rapid Exams
- +
+ + Rapid Exams
+ -
- - Sba Exams
- +
+ + Sba Exams
+ -
- - Long Exams
- +
+ + Long Exams
+ -
- - Anatomy Exams
- +
+ + Anatomy Exams
+ -
- - Shorts Exams
- +
+ + Shorts Exams
+ -
- - CaseCollection Exams
- +
+ + CaseCollection Exams
+ -
+ + -
- - - - + + + + +
@@ -183,20 +183,20 @@ }) // $.ajax().done(), $.ajax().fail(), $ajax().always() are upto you. Add/change accordingly .done(function (data) { - console.log(data); + console.log(data); - if (data.status == "success") { - toastr.info('Added/Updated'); - location.reload(); - } else { - toastr.error(data.details) - } + if (data.status == "success") { + toastr.info('Added/Updated'); + location.reload(); + } else { + toastr.error(data.details) + } // show some message according to the response. // For eg. A message box showing that the status has been changed - }) + }) .always(function () { - console.log('[Done]'); - }) + console.log('[Done]'); + }) } diff --git a/generic/templates/generic/user_view.html b/generic/templates/generic/user_view.html index 1465c7b1..5053dfdf 100644 --- a/generic/templates/generic/user_view.html +++ b/generic/templates/generic/user_view.html @@ -16,41 +16,41 @@
diff --git a/templates/question_table_view.html b/templates/question_table_view.html index c6ce471c..7aec19f6 100644 --- a/templates/question_table_view.html +++ b/templates/question_table_view.html @@ -13,15 +13,15 @@