Refactor collection detail template to improve display of exam mode and access information
This commit is contained in:
@@ -21,23 +21,22 @@
|
|||||||
{% include 'exam_notes.html' %}
|
{% include 'exam_notes.html' %}
|
||||||
|
|
||||||
<p class="mb-1">
|
<p class="mb-1">
|
||||||
<span class="badge bg-info text-dark me-2">{{ collection.exam_mode }}</span>
|
|
||||||
<small class="text-muted">(open access: {{ collection.exam_open_access }})</small>
|
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p class="mb-2">
|
<p class="mb-2">
|
||||||
{% include "generic/partials/exams/exam_status.html#publish-results" %}
|
{% include "generic/partials/exams/exam_status.html#publish-results" %} {% include "generic/partials/exams/exam_status.html#exam-active" %}
|
||||||
{% include "generic/partials/exams/exam_status.html#exam-active" %}
|
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p class="mb-1">
|
<p class="mb-1">
|
||||||
<span class="badge bg-secondary me-2">{{ collection.get_collection_type_display }}</span>
|
Collection type: <span class="badge bg-secondary me-2">{{ collection.get_collection_type_display }}</span>
|
||||||
<span class="badge bg-light text-dark me-2">Self review: {{ collection.self_review }}</span>
|
Self review: <span class="badge bg-light text-dark me-2">{{ collection.self_review }}</span>
|
||||||
|
Open access:
|
||||||
{% if collection.open_access %}
|
{% if collection.open_access %}
|
||||||
<span class="badge bg-success">Open</span>
|
<span class="badge bg-success">Open</span>
|
||||||
{% else %}
|
{% else %}
|
||||||
<span class="badge bg-warning text-dark">Restricted</span>
|
<span class="badge bg-warning text-dark">Restricted</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Exam mode: <span class="badge bg-info text-dark me-2">{{ collection.exam_mode }}</span>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
{% if collection.prerequisites.exists %}
|
{% if collection.prerequisites.exists %}
|
||||||
|
|||||||
Reference in New Issue
Block a user