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/complete.html | 3 ++- templates/exam/question.html | 38 ++++++++++++++++++++++++++++++++++++-- 2 files changed, 38 insertions(+), 3 deletions(-) (limited to 'templates') diff --git a/templates/exam/complete.html b/templates/exam/complete.html index ded38f7..bd90e6d 100644 --- a/templates/exam/complete.html +++ b/templates/exam/complete.html @@ -1,3 +1,4 @@ -
Exam is complete. Thank you.
+{{message}}
You may now close the browser.
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: