+
HIDE/SHOW
+
+ Question
1
+
+
Answers:
-
-
Exam: {{ exam.name }}
-
Candidate: {{ cid }}
- Answers:
-
{% for ans, score, correct_answer in answers_and_marks %}
- - Question {{forloop.counter}} - Correct answer: {{ correct_answer }}
-
- {{ans}} ({{score}})
-
- View
+
+
+
Exam: {{ exam.name }}
+
Candidate: {{ cid }}
+ Answers:
+
{% for ans, score, correct_answer in answers_and_marks %}
+ - Question {{forloop.counter}} - Correct answer: {{
+ correct_answer }}
+
+ {{ans}} ({{score}})
+
+ View
{% endfor %}
-
-
Total mark: {{ total_score }} / {{max_score}}
-
Normalised score: {{ normalised_score }}
-
+
+
Total mark: {{ total_score }} / {{max_score}}
+
Normalised score: {{ normalised_score }}
+
+
{% endblock %}
{% block js %}
-
-{% endblock %}
+ });
+
+{% endblock %}
\ No newline at end of file
diff --git a/rapids/urls.py b/rapids/urls.py
index e649027e..64beaa88 100755
--- a/rapids/urls.py
+++ b/rapids/urls.py
@@ -76,7 +76,7 @@ urlpatterns = [
name="exam_scores_cid",
),
path(
- "exam/
/scores//",
+ "exam//scores///",
views.exam_scores_cid_user,
name="exam_scores_cid_user",
),
diff --git a/rapids/views.py b/rapids/views.py
index 5e05c27e..a02271f1 100755
--- a/rapids/views.py
+++ b/rapids/views.py
@@ -846,7 +846,7 @@ def exam_scores_cid(request, pk):
)
-def exam_scores_cid_user(request, pk, cid):
+def exam_scores_cid_user(request, pk, cid, passcode):
exam = get_object_or_404(Exam, pk=pk)
if not exam.exam_mode:
@@ -908,6 +908,7 @@ def exam_scores_cid_user(request, pk, cid):
{
"exam": exam,
"cid": cid,
+ "passcode" : passcode,
"questions": questions,
"answers": answers,
"answers_marks": answers_marks,
diff --git a/sbas/templates/sbas/exam_scores_user.html b/sbas/templates/sbas/exam_scores_user.html
index 89dacb80..5fb05f33 100644
--- a/sbas/templates/sbas/exam_scores_user.html
+++ b/sbas/templates/sbas/exam_scores_user.html
@@ -7,13 +7,15 @@
Answers:
{% for question, a, score, correct_answer in answers_and_marks %}
- - Question {{forloop.counter}} - {{ question.stem |safe}}
- Correct answer: {{correct_answer|safe}}
{{a}} (Score: {{score}})
+ - Question
+ {{forloop.counter}} - {{ question.stem |safe}}
+ Correct answer: {{correct_answer|safe}}
{{a}} (Score:
+ {{score}})
{% endfor %}
Total mark: {{ total_score }} / {{max_score}}
{% endblock %}
\ No newline at end of file
diff --git a/sbas/urls.py b/sbas/urls.py
index e5384dae..a1090dae 100644
--- a/sbas/urls.py
+++ b/sbas/urls.py
@@ -14,9 +14,9 @@ urlpatterns = [
# path("question/