From 0808861705c08aede6c0dc9e07ac891911a7bbfb Mon Sep 17 00:00:00 2001 From: prathamesh Date: Tue, 23 Sep 2014 14:44:47 +0530 Subject: Models and views modified. Added number of attempts option for quiz. Also days lag between two attempts. added test status and attempt number for the test. Removed profile foreign key from answer paper models since user foreign key is present in the answer paper model. Urls slightly modified to include attemt number for a given quiz. --- testapp/exam/templates/exam/intro.html | 2 +- testapp/exam/templates/exam/question.html | 9 ++------- testapp/exam/templates/exam/quit.html | 4 ++-- 3 files changed, 5 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..855a29e 100644 --- a/testapp/exam/templates/exam/question.html +++ b/testapp/exam/templates/exam/question.html @@ -74,7 +74,7 @@ function setSnippetHeight() -
+ {% csrf_token %} @@ -94,13 +94,8 @@ function setSnippetHeight() {% endfor%} {% endif %} - {% if success_msg %} - - {% endif %}

- + {% csrf_token %} {% if question.type == "mcq" %} {% for option in question.options.strip.splitlines %} 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 From cbdeb90a756832c71c80bac4dbe9ba1a3aceacb2 Mon Sep 17 00:00:00 2001 From: hardythe1 Date: Fri, 16 Jan 2015 16:47:43 +0530 Subject: added view, urls for assignment upload & changed the model --- testapp/exam/templates/exam/question.html | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'testapp/exam/templates') diff --git a/testapp/exam/templates/exam/question.html b/testapp/exam/templates/exam/question.html index 855a29e..f8888b1 100644 --- a/testapp/exam/templates/exam/question.html +++ b/testapp/exam/templates/exam/question.html @@ -95,6 +95,17 @@ function setSnippetHeight() {% endif %}

+ + {% if question.type == "bash assignment" %} +
+

Upload assignment file for the said question

+ +


+
   + +
+ {% endif %} +
{% csrf_token %} {% if question.type == "mcq" %} -- cgit From f2e09edeb2e5b884f0e75ad3747b51e7603d70e1 Mon Sep 17 00:00:00 2001 From: prathamesh Date: Tue, 20 Jan 2015 17:05:41 +0530 Subject: Assignment upload interface implementation --- testapp/exam/templates/exam/question.html | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) (limited to 'testapp/exam/templates') diff --git a/testapp/exam/templates/exam/question.html b/testapp/exam/templates/exam/question.html index f8888b1..03284ce 100644 --- a/testapp/exam/templates/exam/question.html +++ b/testapp/exam/templates/exam/question.html @@ -96,23 +96,18 @@ function setSnippetHeight()

- {% if question.type == "bash assignment" %} - -

Upload assignment file for the said question

- -


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

Upload assignment file for the said question

+ +


+ {% endif %} {% if question.type == "mcc" %} {% for option in question.options.strip.splitlines %} {{ option }} @@ -134,6 +129,8 @@ function setSnippetHeight() {% if question.type == "mcq" or question.type == "mcc "%}
   + {% elif question.type == "basgn" %} +
   {% else %}    {% endif %} -- cgit From caf153bcaa8b9a0096a4653b562198f2ba2cef9a Mon Sep 17 00:00:00 2001 From: prathamesh Date: Tue, 24 Feb 2015 09:29:35 +0530 Subject: Question navigator implemented Students can now move from one question to another through the navigator window. Also, the questions attempted will have different color then the ones which are not attempted. --- testapp/exam/templates/exam/question.html | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) (limited to 'testapp/exam/templates') diff --git a/testapp/exam/templates/exam/question.html b/testapp/exam/templates/exam/question.html index 03284ce..96e7bd6 100644 --- a/testapp/exam/templates/exam/question.html +++ b/testapp/exam/templates/exam/question.html @@ -81,10 +81,30 @@ function setSnippetHeight()
+ +
+
- -

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


+

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


{{ question.description|safe }} {% if error_message %}
-- cgit