This commit is contained in:
Ross
2022-04-21 17:34:59 +01:00
parent 9876baab82
commit 2b6d1077b4
5 changed files with 22 additions and 12 deletions
@@ -3,7 +3,7 @@
Collection: {{collection.name}}-> <a href="{% url 'atlas:collection_detail' pk=collection.pk %}">Overview</a> /
<a href="{% url 'atlas:collection_mark_overview' collection.pk %}">Mark</a> /
<a href="{% url 'atlas:collection_scores_cid' collection.pk %}">Scores</a> /
<a href="{% url 'atlas:collection_candidates' collection.pk %}">Candidates</a>
<a href="{% url 'atlas:exam_cids' collection.pk %}">Candidates</a>
<div class="floating-header">
<a href="{% url 'atlas:collection_update' collection.id %}" title="Edit the Collection">Edit</a>
\ <a href="{% url 'atlas:collection_delete' collection.id %}" title="Delete the Collection">Delete</a>
+2 -1
View File
@@ -19,7 +19,8 @@ urlpatterns = [
path("collection/<int:pk>/update", views.CaseCollectionUpdate.as_view(), name="collection_update"),
path("collection/<int:pk>", views.collection_detail, name="collection_detail"),
path("collection/<int:pk>/take", views.collection_take, name="collection_take"),
path("collection/<int:pk>/candidates", views.collection_candidates, name="collection_candidates"),
path("collection/<int:exam_id>/cids", views.GenericExamViews.exam_cids, name="exam_cids"),
path("collection/<int:exam_id>/cids/edit", views.GenericExamViews.exam_cids_edit, name="exam_cids_edit"),
path("collection/<int:pk>/mark", views.collection_mark_overview, name="collection_mark_overview"),
path("collection/<int:pk>/mark/<int:case_number>", views.collection_mark_question, name="collection_mark_question"),
path("collection/<int:pk>/scores", views.collection_scores_cid, name="collection_scores_cid"),
+6 -2
View File
@@ -1165,7 +1165,7 @@ def collection_mark_question(request, pk, case_number):
@user_is_collection_author_or_atlas_editor
def collection_candidates(request, pk):
def exam_cids(request, pk):
collection = get_object_or_404(CaseCollection, pk=pk)
if (
@@ -1177,7 +1177,7 @@ def collection_candidates(request, pk):
cid_user_count = cid_users.count()
return render(
request,
"atlas/collection_candidates.html",
"atlas/exam_cids.html",
{
"collection": collection,
"cid_users": cid_users,
@@ -1510,3 +1510,7 @@ def collection_scores_cid(request, pk):
"plot": fig_html,
},
)
GenericExamViews = ExamViews(
CaseCollection, Case, None, CidReportAnswer, "casecollection", "case", None
)