From da56e93ed135718682cc7e796e3214872f38c068 Mon Sep 17 00:00:00 2001 From: Ross Date: Sat, 18 Dec 2021 19:17:24 +0000 Subject: [PATCH] . --- rapids/templates/rapids/exam_scores_new.html | 80 ++++++++++++++++++++ rapids/views.py | 2 +- 2 files changed, 81 insertions(+), 1 deletion(-) create mode 100644 rapids/templates/rapids/exam_scores_new.html diff --git a/rapids/templates/rapids/exam_scores_new.html b/rapids/templates/rapids/exam_scores_new.html new file mode 100644 index 00000000..bd9fd93b --- /dev/null +++ b/rapids/templates/rapids/exam_scores_new.html @@ -0,0 +1,80 @@ +{% extends 'rapids/exams.html' %} + +{% block content %} +
{{plot|safe}}
+
+

{{ exam.name }}

+ User answer scores are cached, if you update or change an answer you will need to refresh the scores. + + {% if unmarked %} + + + {% endif %} + +
+
+

Stats

+ Candidates: {{cids|length}}
+ Max score: {{max_score}}
+ Mean: {{mean}}, Median {{median}}, Mode {{mode}} + +
+
+ + + + + + + {% for user, value in user_answers_marks.items %} + + + + + + {% endfor %} +
Candidate IDScoreNormalised Score
{{user}}{{user_scores|get_item:user}}{{user_scores_normalised|get_item:user}}
+
+
+

Answers as a table TEST

+ + + + + {% for cid in cids %} + {% comment %} {% endcomment %} + + {% endfor %} + + + + {% for question in questions %} + + + {% for cid in cids %} + + {% endfor %} + + {% endfor %} + + + {% for cid in cids %} + + {% endfor %} + +
Candidate{{cid}}{{cid}}
Question {{forloop.counter}} + {% if question.normal %} + [N] + {% else %} + [A] + {% endif %} + {{ans_by_question|get_item:question|get_item:cid}}
Score:{{user_scores|get_item:cid}}
+ +
+{% endblock %} + diff --git a/rapids/views.py b/rapids/views.py index ac070213..55e38481 100755 --- a/rapids/views.py +++ b/rapids/views.py @@ -676,7 +676,7 @@ def exam_scores_cid2(request, pk): return render( request, - "rapids/exam_scores.html", + "rapids/exam_scores_new.html", { "cids": sorted(cids), "exam": exam,