initial commit
[koed-quiz.git] / apps / quiz / templates / quiz / question_detail.html
1 {% extends "base.html" %}
2 {% load i18n %}
3 {% load url from future %}
4
5 {% block "body" %}
6
7
8 <h1>{{ question.title }}</h1>
9 <div>
10 {{ question.text }}
11 </div>
12
13 <div>
14
15
16
17 <form method='post'>
18 {% csrf_token %}
19 {{ form.answer.errors }}
20 {{ form.answer }}
21
22 {% if valid %}
23     <input type='submit' />
24
25     {% if previous_url %}
26         <a href='{{ previous_url }}'>{% trans "Back to last question" %}</a>
27     {% endif %}
28
29 {% else %}
30     {% if valid_url %}
31         <a href='{{ valid_url }}'>{% trans "Back to my test" %}</a>
32     {% else %}
33         <a href='{% url "quiz" %}'>{% trans "Start from the beginning" %}</a>
34     {% endif %}
35 {% endif %}
36
37 </form>
38 </div>
39
40
41 <div>
42 {{ question.description }}
43 </div>
44
45
46 {% endblock %}