From bd0ed17050159e4ca3ba4493bdc520f26d85120c Mon Sep 17 00:00:00 2001 From: maheshgudi Date: Thu, 8 Sep 2016 08:17:25 +0530 Subject: changed template to add end_time and status details in answerpaper --- yaksh/templates/yaksh/view_answerpaper.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'yaksh') diff --git a/yaksh/templates/yaksh/view_answerpaper.html b/yaksh/templates/yaksh/view_answerpaper.html index a213d7b..9227561 100644 --- a/yaksh/templates/yaksh/view_answerpaper.html +++ b/yaksh/templates/yaksh/view_answerpaper.html @@ -23,6 +23,13 @@ Questions correctly answered: {{ paper.get_answered_str }}
Marks obtained: {{ paper.marks_obtained }}
Start time: {{ paper.start_time }}
+ End time : {{ paper.end_time }}
+ Percentage obtained: {{ paper.percent }}%
+ {% if paper.passed == 0 %} + Status : Failed
+ {% else %} + Status : Passed
+ {% endif %}

{% if paper.answers.count %} @@ -40,7 +47,7 @@ {% if question.type == "mcq" or question.type == "mcc" %}
Choices:
{% for testcase in question.get_test_cases %} -
{{ forloop.counter }}.  {{ testcase.options }} +
{{ forloop.counter }}. {{ testcase.options }} {% endfor %} {%endif%} -- cgit