From 7bec4708e69a8f7d2d93d640ec851ca0a7d86df1 Mon Sep 17 00:00:00 2001 From: ankitjavalkar Date: Mon, 23 Nov 2015 17:49:40 +0530 Subject: Add quiz score table in grade user --- yaksh/templates/yaksh/grade_user.html | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) (limited to 'yaksh') diff --git a/yaksh/templates/yaksh/grade_user.html b/yaksh/templates/yaksh/grade_user.html index 8c094a7..9537251 100644 --- a/yaksh/templates/yaksh/grade_user.html +++ b/yaksh/templates/yaksh/grade_user.html @@ -17,9 +17,9 @@ Name: {{ data.user.get_full_name.title }} {% if data.profile %} (roll number: {{ data.profile.roll_number }})
-{{ data.profile.position }}, -{{ data.profile.department }}, -{{ data.profile.institute }} +Position: {{ data.profile.position }}
+Department: {{ data.profile.department }}
+Institute: {{ data.profile.institute }}
{% endif %}

@@ -27,6 +27,8 @@ Name: {{ data.user.get_full_name.title }} {% for paper in data.papers %} +{{ paper.total_marks }} +

Quiz: {{ paper.quiz.description }}

@@ -37,11 +39,27 @@ Start time: {{ paper.start_time }}

{% if paper.answers.count %} + +

Report


+ + + + {% for question, answers in paper.get_question_answers.items %} + {% with answers|last as answer %} + + + + + {% endwith %} + {% endfor %} +
QuestionsMarks Obtained
{{ question.id }}{{ answer.marks }}
+

Answers


{% csrf_token %} {% for question, answers in paper.get_question_answers.items %} +

Question: {{ question.id }}. {{ question.summary }} (Points: {{ question.points }}) -- cgit