From bd5b1e21c4d837dab410f9a3eb332d7af3d0185a Mon Sep 17 00:00:00 2001 From: prathamesh Date: Tue, 7 Apr 2015 13:39:47 +0530 Subject: Multiple attempts and file upload question type. Can have multiple attempts for a quiz. Can also specify time lag between two successive attempts for a given quiz. Students can upload their code through the interface. The code will be saved in the folder named after their roll number. And the file name will be the question id. --- testapp/exam/templates/exam/intro.html | 2 +- testapp/exam/templates/exam/question.html | 49 ++++++++++++++++++++++++++----- testapp/exam/templates/exam/quit.html | 4 +-- 3 files changed, 45 insertions(+), 10 deletions(-) (limited to 'testapp/exam/templates') diff --git a/testapp/exam/templates/exam/intro.html b/testapp/exam/templates/exam/intro.html index ec1888a..58068ed 100644 --- a/testapp/exam/templates/exam/intro.html +++ b/testapp/exam/templates/exam/intro.html @@ -27,7 +27,7 @@

We hope you enjoy taking this exam !!!

-
+ {% csrf_token %}
diff --git a/testapp/exam/templates/exam/question.html b/testapp/exam/templates/exam/question.html index a3e8629..977b388 100644 --- a/testapp/exam/templates/exam/question.html +++ b/testapp/exam/templates/exam/question.html @@ -10,7 +10,10 @@ {% endblock %} {% block script %} + + + {% endblock script %} @@ -74,7 +89,7 @@ function setSnippetHeight() -
+ {% csrf_token %} @@ -94,19 +109,20 @@ function setSnippetHeight() {% endfor%} {% endif %} - {% if success_msg %} - - {% endif %}

- + + {% csrf_token %} {% if question.type == "mcq" %} {% for option in question.options.strip.splitlines %} {{option}}
{% endfor %} {% endif %} + {% if question.type == "upload" %} +

Upload assignment file for the said question

+ +


+ {% endif %} {% if question.type == "mcc" %} {% for option in question.options.strip.splitlines %} {{ option }} @@ -128,6 +144,8 @@ function setSnippetHeight() {% if question.type == "mcq" or question.type == "mcc "%}
   + {% elif question.type == "upload" %} +
   {% else %}    {% endif %} @@ -135,4 +153,21 @@ function setSnippetHeight()
+ + + {% endblock content %} diff --git a/testapp/exam/templates/exam/quit.html b/testapp/exam/templates/exam/quit.html index fee11ed..2c347cb 100644 --- a/testapp/exam/templates/exam/quit.html +++ b/testapp/exam/templates/exam/quit.html @@ -7,8 +7,8 @@

Your current answers are saved.

Are you sure you wish to quit the exam?

Be sure, as you won't be able to restart this exam.

-
+ {% csrf_token %} -
 
+
 
{% endblock content %} -- cgit