tidy up exam start and end dates a little

This commit is contained in:
Ross
2024-05-20 10:06:04 +01:00
parent d50fbaafd6
commit 966de4a139
4 changed files with 55 additions and 5 deletions
@@ -38,6 +38,14 @@ Exam mode: {{ exam.exam_mode }}<br />
{% endif %}
Open access: {{ exam.open_access }}<br />
{% if exam.start_date %}
Start date: {{ exam.start_date }}
{% endif %}
{% if exam.end_date %}
/ End date: {{ exam.end_date }}
{% endif %}
<div class="parent-help" title="Click to enable / disable the exam">
Exam active: <input type="checkbox" id="exam-active-switch" {% if exam.active %}checked{% endif %} data-posturl="{% url exam.get_app_name|add:':exam_toggle_active' pk=exam.pk %}"> <span class="help-text">[When checked the exam will be available to take in the test system]</span>
</div>