From 18288cbb0dadca66c71ec5abb854d726ca6e27d8 Mon Sep 17 00:00:00 2001 From: maheshgudi Date: Wed, 7 Sep 2016 15:35:20 +0530 Subject: students can view questions, beautified view_answerpaper.html --- yaksh/templates/yaksh/view_answerpaper.html | 62 +++++++++++++++++++++-------- 1 file changed, 46 insertions(+), 16 deletions(-) (limited to 'yaksh/templates') diff --git a/yaksh/templates/yaksh/view_answerpaper.html b/yaksh/templates/yaksh/view_answerpaper.html index ae70e69..a213d7b 100644 --- a/yaksh/templates/yaksh/view_answerpaper.html +++ b/yaksh/templates/yaksh/view_answerpaper.html @@ -1,4 +1,7 @@ {% extends "user.html" %} +{% block css %} + +{% endblock %} {% block title %} Answer Paper for {{ quiz.description }}{% endblock title %} @@ -6,7 +9,6 @@ {% block subtitle %} Answer Paper for {{ quiz.description }}{% endblock %} - {% if not data.papers %}
You have not attempted the quiz {{ quiz.description }}
{% else %} @@ -24,29 +26,57 @@ {% if paper.answers.count %} -Question: {{ question.id }}. {{ question.summary }} (Mark(s): {{ question.points }})
+ + Choices:
- {% for testcase in question.get_test_cases %}
{{ testcase.options }} {% endfor %}
-
Student answer: {{ answers.0 }}
- Autocheck: {{ answers.0.error }} - {% else %}{# non-mcq questions #} -Student answer:
+ {% if "Correct answer" in answers.0.error %} +{{forloop.counter}}. {{ answers.0 }}
+ - ############################################################################### - {{ answer.answer.strip }} - # Autocheck: {{ answer.error }} -+ {% if "Correct answer" in answer.error %} +
{{ answer.answer.strip }}
Obtained Marks: {{answer.marks}}
+Obtained Marks: {{answer.marks}}
{% endwith %}