diff options
author | Prabhu Ramachandran | 2011-11-17 02:15:33 +0530 |
---|---|---|
committer | Prabhu Ramachandran | 2011-11-17 02:15:33 +0530 |
commit | e2b3d315c3cd3eab79ad74224436b681cbf84371 (patch) | |
tree | 85daad94f7ffef98a649579a6e26083daf274f56 /templates/exam | |
parent | ccc597e122e35070e4bfdac396b6171ef2cbd354 (diff) | |
download | online_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')
-rw-r--r-- | templates/exam/complete.html | 2 | ||||
-rw-r--r-- | templates/exam/monitor.html | 6 | ||||
-rw-r--r-- | templates/exam/question.html | 8 |
3 files changed, 9 insertions, 7 deletions
diff --git a/templates/exam/complete.html b/templates/exam/complete.html index e42704f..ded38f7 100644 --- a/templates/exam/complete.html +++ b/templates/exam/complete.html @@ -1,3 +1,3 @@ -<p>Quiz is complete. Thank you. </p> +<p>Exam is complete. Thank you. </p> <br /> <p>You may now close the browser.</p> diff --git a/templates/exam/monitor.html b/templates/exam/monitor.html index 12360a2..f1c7779 100644 --- a/templates/exam/monitor.html +++ b/templates/exam/monitor.html @@ -2,12 +2,12 @@ <meta http-equiv="refresh" content="30"/> -{% if quiz_list %} +{% if paper_list %} <table border="1" cellpadding="3"> <tr> <th>Student </th> <th> Roll number </th> <th>Questions answered</th> <th>Total marks</th> </tr> - {% for paper in quiz_list %} + {% for paper in paper_list %} <tr> <td> {{ paper.username }} </td> <td> {{ paper.rollno }} </td> @@ -18,6 +18,6 @@ {% endfor %} </table> {% else %} - <p> No quizzes so far. </p> + <p> No answer papers so far. </p> {% endif %} 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"> |