diff options
author | Prabhu Ramachandran | 2016-01-13 15:47:26 +0530 |
---|---|---|
committer | Prabhu Ramachandran | 2016-01-13 15:47:26 +0530 |
commit | 7d9beac8b3db3724b17ca2695672eb5ceae903f3 (patch) | |
tree | aa4502904aae7b85bb699d63b30e008cd0902bb1 /yaksh | |
parent | 74e6fa5b7c9749e00453d9fae3da62abf8694ab0 (diff) | |
parent | 7bec4708e69a8f7d2d93d640ec851ca0a7d86df1 (diff) | |
download | online_test-7d9beac8b3db3724b17ca2695672eb5ceae903f3.tar.gz online_test-7d9beac8b3db3724b17ca2695672eb5ceae903f3.tar.bz2 online_test-7d9beac8b3db3724b17ca2695672eb5ceae903f3.zip |
Merge pull request #65 from ankitjavalkar/quiz-score
Add quiz score table in grade user
Diffstat (limited to 'yaksh')
-rw-r--r-- | yaksh/templates/yaksh/grade_user.html | 24 |
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 }}) |