summaryrefslogtreecommitdiff
path: root/yaksh/templates
diff options
context:
space:
mode:
authorankitjavalkar2015-11-23 17:49:40 +0530
committerankitjavalkar2015-11-23 17:49:40 +0530
commit7bec4708e69a8f7d2d93d640ec851ca0a7d86df1 (patch)
treeaa4502904aae7b85bb699d63b30e008cd0902bb1 /yaksh/templates
parent74e6fa5b7c9749e00453d9fae3da62abf8694ab0 (diff)
downloadonline_test-7bec4708e69a8f7d2d93d640ec851ca0a7d86df1.tar.gz
online_test-7bec4708e69a8f7d2d93d640ec851ca0a7d86df1.tar.bz2
online_test-7bec4708e69a8f7d2d93d640ec851ca0a7d86df1.zip
Add quiz score table in grade user
Diffstat (limited to 'yaksh/templates')
-rw-r--r--yaksh/templates/yaksh/grade_user.html24
1 files changed, 21 insertions, 3 deletions
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 }}) <br/>
-{{ data.profile.position }},
-{{ data.profile.department }},
-{{ data.profile.institute }}
+Position: {{ data.profile.position }} <br/>
+Department: {{ data.profile.department }} <br/>
+Institute: {{ data.profile.institute }} <br/>
{% endif %}
</p>
@@ -27,6 +27,8 @@ Name: {{ data.user.get_full_name.title }}
{% for paper in data.papers %}
+{{ paper.total_marks }}
+
<h2> Quiz: {{ paper.quiz.description }} </h2>
<p>
@@ -37,11 +39,27 @@ Start time: {{ paper.start_time }} <br/>
</p>
{% if paper.answers.count %}
+
+<h4> Report </h4><br>
+<table class="zebra-striped">
+ <th>Questions</th>
+ <th>Marks Obtained</th>
+ {% for question, answers in paper.get_question_answers.items %}
+ {% with answers|last as answer %}
+ <tr>
+ <td>{{ question.id }}</td>
+ <td>{{ answer.marks }}</td>
+ </tr>
+ {% endwith %}
+ {% endfor %}
+</table>
+
<h3> Answers </h3><br>
<form name=frm id="q{{ paper.quiz.id }}_form"
action="{{URL_ROOT}}/exam/manage/gradeuser/{{data.user.username}}/" method="post">
{% csrf_token %}
{% for question, answers in paper.get_question_answers.items %}
+
<div class="for-question">
<p><strong>
Question: {{ question.id }}. {{ question.summary }} (Points: {{ question.points }})