summaryrefslogtreecommitdiff
path: root/templates/exam/question.html
blob: b70d97baa69706f17056cd8d84253f963f12fa8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<h2> {{ question.summary }} </h2>

<p>{{ question.description }} </p>

{% if error_message %}<p><strong>ERROR:</strong></p><pre>{{ error_message }}</pre>{% endif %}

<form action="/exam/{{ question.id }}/check/" method="post">
{% csrf_token %}

<textarea rows="20" cols="100" name="answer">
{% if last_attempt %}{{last_attempt}}{% else %}# Enter your answer here.{% endif %}
</textarea>

<br/>

<input type="submit" name="check" value="Check Answer" />
<input 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>

<hr/>
<form action="/exam/quit/" method="post">
{% csrf_token %}
<input type="submit" name="quit" value="Quit exam and logout" />
</form>