From f3af33c92c1bf2c3adfb0e16f511f904f2211c1e Mon Sep 17 00:00:00 2001 From: Ross Date: Sat, 2 Apr 2022 23:14:44 +0100 Subject: [PATCH] . --- .../atlas/collection_candidates.html | 27 ++++++++ atlas/templates/atlas/collection_detail.html | 20 +----- atlas/templates/atlas/collection_heades.html | 20 ++++++ atlas/views.py | 66 +++++++++++++------ 4 files changed, 94 insertions(+), 39 deletions(-) create mode 100644 atlas/templates/atlas/collection_candidates.html create mode 100644 atlas/templates/atlas/collection_heades.html diff --git a/atlas/templates/atlas/collection_candidates.html b/atlas/templates/atlas/collection_candidates.html new file mode 100644 index 00000000..6a404318 --- /dev/null +++ b/atlas/templates/atlas/collection_candidates.html @@ -0,0 +1,27 @@ +{% extends 'atlas/base.html' %} + +{% block content %} +{% include 'atlas:collection_headers.html' %} + +

{{cid_user_count}} candidates.

+ + +
    + {% for cid in cid_users %} + +
  1. {{cid.cid}} [{{cid.passcode}}] {{cid.name}} / + Email: {{cid.email}} + {% if cid.supervisor_email %} / Supervisor email: {{cid.supervisor_email}}{% endif %}
    + Internal candidate: {{cid.internal_candidate}} + {% if cid.login_email_sent %} / Login email sent{% endif %} + {% if cid.results_email_sent %} / Results email sent{% endif %} +
  2. + + {% endfor %} +
+ + + + Manage CIDs here + +{% endblock %} \ No newline at end of file diff --git a/atlas/templates/atlas/collection_detail.html b/atlas/templates/atlas/collection_detail.html index 1403b33c..cb68985b 100644 --- a/atlas/templates/atlas/collection_detail.html +++ b/atlas/templates/atlas/collection_detail.html @@ -1,25 +1,7 @@ {% extends 'atlas/base.html' %} {% block content %} -{% if request.user.is_authenticated %} -Collection: {{collection.name}}-> Overview / -Mark / -Scores / -Candidates -
- Edit - \ Delete - {% comment %} \ Clone {% endcomment %} -{% if request.user.is_superuser %} - \ Admin Edit -{% endif %} -
-{% endif %} - - -

{{collection.name}} - -{% include 'exam_notes.html' %} +{% include 'atlas:collection_headers.html' %}