From fbaa4b00274ad0c9ed591191de5a4b14a5ba1d0b Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 9 Jan 2023 13:02:49 +0000 Subject: [PATCH] Alert when exams have no candidates --- generic/templates/generic/exam_overview_headers.html | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/generic/templates/generic/exam_overview_headers.html b/generic/templates/generic/exam_overview_headers.html index b811a798..6b898807 100644 --- a/generic/templates/generic/exam_overview_headers.html +++ b/generic/templates/generic/exam_overview_headers.html @@ -21,17 +21,23 @@ {% if exam.exam_mode %} - {% if not candidate_count.0 and not candidate_count.1 %} + {% if not exam.cid_user_groups.count and not exam.user_user_groups.count %} + {% else %} + {% if not candidate_count.0 and not candidate_count.1 %} + + {% endif %} {% endif %} {% endif %} This exam has {{question_number}} questions. Time limit: {{exam.time_limit}} seconds. Exam mode: {{ exam.exam_mode }}
-Candidates - cid: {{candidate_count.0}}, users: {{candidate_count.1}}
+Cid candidates: {{candidate_count.0}}, User candidates: {{candidate_count.1}}
Open access: {{ exam.open_access }}