improve collection overview page

This commit is contained in:
Ross
2025-07-21 12:52:45 +01:00
parent 6a919ffc53
commit ad4be1e9a6
6 changed files with 115 additions and 3 deletions
+5 -3
View File
@@ -1,14 +1,16 @@
{% extends 'atlas/exams.html' %}
{% load partials %}
{% block content %}
<h2>{{collection.name}}</h2>
{% include 'exam_notes.html' %}
<div>
Exam mode: {{collection.exam_mode}} (Exam open acess: {{collection.exam_open_access}})<br />
Publish results: {{collection.publish_results}}<br />
Active: {{collection.active}}<br />
Exam mode: {{collection.exam_mode}} (open access: {{collection.exam_open_access}})<br />
{% include "generic/partials/exams/exam_status.html#publish-results" %}
{% include "generic/partials/exams/exam_status.html#exam-active" %}
Collection Type: {{collection.get_collection_type_display}}<br />
Self review: {{collection.self_review}}<br />
</div>
+10
View File
@@ -81,6 +81,16 @@ urlpatterns = [
name="collection_take_start",
),
path("collection/<int:pk>/authors", views.CaseCollectionAuthorUpdate.as_view(), name="collection_authors"),
path(
"collection/<int:pk>/toggle_results_published",
views.GenericExamViews.exam_toggle_results_published_htmx,
name="exam_toggle_results_published",
),
path(
"collection/<int:pk>/toggle_active",
views.GenericExamViews.exam_toggle_active_htmx,
name="exam_toggle_active",
),
path(
"collection/<int:exam_id>/cids",
views.GenericExamViews.exam_cids,