stop seperating active exams in exam list

This commit is contained in:
Ross
2024-12-30 12:56:29 +00:00
parent 70bb6dc15a
commit 3c72a06ad2
+3 -5
View File
@@ -25,10 +25,9 @@
<p>Supervisors will have access to all exam results (including archived exams) for which they have access (when "results supervisor visible" is set to true or the user has shared their results).</p>
</details>
<div class="{{app_name}}">
Active exams:<br/>
Exams:<br/>
<ul class="exam-list exam-list-active">
{% for exam in exams %}
{% if exam.active %}
<li class="exam-item">
<a href="{% url app_name|add:':exam_overview' pk=exam.pk %}" class="flex-col-2 exam-name">{{exam}}</a>
{% if marking %}<a href="{% url app_name|add:':mark_overview' pk=exam.pk %}" class="flex-col-half">Mark</a>{% endif %}
@@ -46,11 +45,10 @@
<input type="checkbox" id="archived-{{exam.pk}}" class="exam-archived-switch" data-posturl="{% url app_name|add:':exam_toggle_archived' pk=exam.pk %}" {% if exam.archive %}checked{% endif %}>
<label for="archived-{{exam.pk}}" class="flex-shrink icon-archive archived-icon" title="Click to toggle archived state"><i class="bi bi-archive"></i></label>
</li>
{% endif %}
{% endfor %}
</ul>
Inactive exams:<br/>
{% comment %} Inactive exams:<br/>
<ul class="exam-list exam-list-inactive">
{% for exam in exams %}
{% if not exam.active %}
@@ -84,7 +82,7 @@
</li>
{% endif %}
{% endfor %}
</ul>
</ul> {% endcomment %}