From 42dea8646ffc84aba764361690b18f5eadec631e Mon Sep 17 00:00:00 2001 From: adityacp Date: Thu, 1 Sep 2016 14:52:30 +0530 Subject: changed Quiz displaying template --- yaksh/templates/yaksh/question.html | 44 ++++++++++++++++++------------------- 1 file changed, 22 insertions(+), 22 deletions(-) (limited to 'yaksh/templates') diff --git a/yaksh/templates/yaksh/question.html b/yaksh/templates/yaksh/question.html index 9a0f899..2bae002 100644 --- a/yaksh/templates/yaksh/question.html +++ b/yaksh/templates/yaksh/question.html @@ -102,6 +102,10 @@ function call_skip(url) +
+ {% csrf_token %} + +
-

{{ question.summary }} (Marks : {{ question.points }})


+

{{ question.summary }} (Marks : {{ question.points }}) +

+

{{ question.language|title }} {{ question.type|title }} Question


{{ question.description|safe }} -
Language: {{ question.language }}
{% if files %}

Files to download for this question

- {% for file in files %} - {% if file.question_id == question.id %} -
{{file.file.name}}
+ {% for f_name in files %} + {% if f_name.question_id == question.id %} +
{{f_name.file.name}}
{% endif %} {% endfor %} {% endif %} - {% if question.type == "code" %} -

Output:


- {% if error_message %} -
- - {% else %} - - {% endif %} -
- {% endif %}

@@ -176,10 +171,20 @@ function call_skip(url) {% if question.type == "code" %}

Program:

- -
+ +
{% endif %} + {% if question.type == "code" %} +

Output:


+ {% if error_message %} +
+ + {% else %} + + {% endif %} +
+ {% endif %} {% if question.type == "mcq" or question.type == "mcc"%}
   @@ -195,7 +200,6 @@ function call_skip(url) {% endif %}
- -
- {% csrf_token %} - -