summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/exam/question.html6
-rw-r--r--templates/exam/quit.html8
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>