diff options
author | Prabhu Ramachandran | 2011-11-09 03:05:03 +0530 |
---|---|---|
committer | Prabhu Ramachandran | 2011-11-09 03:05:03 +0530 |
commit | 6cf7eb9f1a69f596ea0dcc418c1b90d3fb8ec513 (patch) | |
tree | de2f47ad2dd6d7f7f1d26ecb33e3f210a96371cc /templates/exam | |
parent | 4694d217dd7d5659afdad7ba5937adb85c15371c (diff) | |
download | online_test-6cf7eb9f1a69f596ea0dcc418c1b90d3fb8ec513.tar.gz online_test-6cf7eb9f1a69f596ea0dcc418c1b90d3fb8ec513.tar.bz2 online_test-6cf7eb9f1a69f596ea0dcc418c1b90d3fb8ec513.zip |
ENH: Saving answers and added quit page/button.
Cleaned up the models so the answers submitted are all saved. Also
added a quit button to each question page so a user can easily quit the
exam in order that another may start.
Diffstat (limited to 'templates/exam')
-rw-r--r-- | templates/exam/question.html | 6 | ||||
-rw-r--r-- | templates/exam/quit.html | 8 |
2 files changed, 14 insertions, 0 deletions
diff --git a/templates/exam/question.html b/templates/exam/question.html index 896a8aa..4cfda27 100644 --- a/templates/exam/question.html +++ b/templates/exam/question.html @@ -18,3 +18,9 @@ </form> <p> You have {{quiz.questions_left}} question(s) left. </p> + +<hr/> +<form action="/exam/quit/" method="post"> +{% csrf_token %} +<input type="submit" name="quit" value="Quit exam and logout" /> +</form> diff --git a/templates/exam/quit.html b/templates/exam/quit.html new file mode 100644 index 0000000..ea4b8df --- /dev/null +++ b/templates/exam/quit.html @@ -0,0 +1,8 @@ +<p>Your current answers are saved.</p> +<p> Are you sure you wish to quit the exam?</p> + +<form action="/exam/complete/" method="post"> +{% csrf_token %} +<input type="submit" name="yes" value="Yes!" /> +<input type="submit" name="no" value="No!" /> +</form> |