From 78e18eae416a37fdb2e27d4dde7ed9675692ac7d Mon Sep 17 00:00:00 2001 From: Prabhu Ramachandran Date: Thu, 17 Nov 2011 16:40:05 +0530 Subject: ENH: Added a Quiz model and time based papers Added a model called Quiz which allows the admin to define a quiz on a date which can be active or deactivated. Users can take a quiz if one is active and are given a fixed duration to complete the quiz. They may login as many times as needed to finish it but the total time is logged. Javascript code updates a timer on the page. --- templates/exam/question.html | 38 ++++++++++++++++++++++++++++++++++++-- 1 file changed, 36 insertions(+), 2 deletions(-) (limited to 'templates/exam/question.html') diff --git a/templates/exam/question.html b/templates/exam/question.html index 75e5a62..2267efc 100644 --- a/templates/exam/question.html +++ b/templates/exam/question.html @@ -2,6 +2,8 @@ +
+{{ question.description }}
{% if error_message %}ERROR:
{{ error_message }}{% endif %} @@ -35,10 +64,15 @@ onclick="submitCode();"/> -
{{ user.first_name.title }} {{ user.last_name.title }}, you have {{ paper.questions_left }} question(s) left.
+{{ user.first_name.title }} {{ user.last_name.title }}, +you have {{ paper.questions_left }} question(s) left in {{ quiz_name }}.
+ +Time left: