This commit is contained in:
Ross
2024-10-14 12:49:05 +01:00
parent 185942b716
commit 6b064b2653
3 changed files with 20 additions and 12 deletions
@@ -13,15 +13,17 @@
{% if exam.exam_mode %}
{% if not exam.cid_user_groups.count and not exam.user_user_groups.count %}
<div class="alert alert-danger" role="alert">
This exam does not have any user / cid groups added.
</div>
{% if exam.exam_open_access %}
{% else %}
{% if not candidate_count.0 and not candidate_count.1 %}
{% if not exam.cid_user_groups.count and not exam.user_user_groups.count %}
<div class="alert alert-danger" role="alert">
This exam does not have any candidates.
This exam does not have any user / cid groups added.
</div>
{% if not candidate_count.0 and not candidate_count.1 %}
<div class="alert alert-danger" role="alert">
This exam does not have any candidates.
</div>
{% endif %}
{% endif %}
{% endif %}
{% endif %}
@@ -34,7 +36,12 @@ This exam has {{question_number}} questions.
Exam mode: {{ exam.exam_mode }}<br />
{% if exam.exam_mode %}
Cid candidates: <a href="{{exam.get_cid_edit_url}}">{{candidate_count.0}}</a>, User candidates: <a href="{{exam.get_user_edit_url}}">{{candidate_count.1}}</a><br />
{% if exam.exam_open_access %}
This exam is available to all registered users.<br />
{% else %}
Cid candidates: <a href="{{exam.get_cid_edit_url}}">{{candidate_count.0}}</a>, User candidates: <a href="{{exam.get_user_edit_url}}">{{candidate_count.1}}</a><br />
{% endif %}
{% endif %}
Markers: