summaryrefslogtreecommitdiff
path: root/templates/exam/question.html
diff options
context:
space:
mode:
authorPrabhu Ramachandran2011-11-17 02:15:33 +0530
committerPrabhu Ramachandran2011-11-17 02:15:33 +0530
commite2b3d315c3cd3eab79ad74224436b681cbf84371 (patch)
tree85daad94f7ffef98a649579a6e26083daf274f56 /templates/exam/question.html
parentccc597e122e35070e4bfdac396b6171ef2cbd354 (diff)
downloadonline_test-e2b3d315c3cd3eab79ad74224436b681cbf84371.tar.gz
online_test-e2b3d315c3cd3eab79ad74224436b681cbf84371.tar.bz2
online_test-e2b3d315c3cd3eab79ad74224436b681cbf84371.zip
ENH: Changing Quiz to QuestionPaper.
This changes the models. The Quiz should really be QuestionPaper and a Quiz should be like an event that the admin creates to start a quiz and each QuestionPaper should be related to a Quiz. This will be added later.
Diffstat (limited to 'templates/exam/question.html')
-rw-r--r--templates/exam/question.html8
1 files changed, 5 insertions, 3 deletions
diff --git a/templates/exam/question.html b/templates/exam/question.html
index 1798606..75e5a62 100644
--- a/templates/exam/question.html
+++ b/templates/exam/question.html
@@ -1,6 +1,7 @@
<h2> {{ question.summary }} </h2>
-<script language="javascript">
+<script type="text/javascript">
+<!--
function submitCode()
{
document.forms["code"].submit();
@@ -11,6 +12,7 @@ function submitCode()
x.value = "Checking Answer ...";
document.getElementById("skip").disabled = true;
}
+//-->
</script>
<p>{{ question.description }} </p>
@@ -29,11 +31,11 @@ function submitCode()
<br/>
<input id="check" type="submit" name="check" value="Check Answer"
-onclick="javascript:submitCode();"/>
+onclick="submitCode();"/>
<input id="skip" type="submit" name="skip" value="Skip question" />
</form>
-<p> {{ user.first_name.title }} {{ user.last_name.title }}, you have {{ quiz.questions_left }} question(s) left. </p>
+<p> {{ user.first_name.title }} {{ user.last_name.title }}, you have {{ paper.questions_left }} question(s) left. </p>
<hr/>
<form action="/exam/quit/" method="post">