fnp
/
koed-quiz.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
pretty much working version
[koed-quiz.git]
/
apps
/
quiz
/
templates
/
quiz
/
question_detail.html
diff --git
a/apps/quiz/templates/quiz/question_detail.html
b/apps/quiz/templates/quiz/question_detail.html
index
b739a98
..
c74742c
100755
(executable)
--- a/
apps/quiz/templates/quiz/question_detail.html
+++ b/
apps/quiz/templates/quiz/question_detail.html
@@
-2,35
+2,40
@@
{% load i18n %}
{% load url from future %}
{% load i18n %}
{% load url from future %}
+
+{% block "title" %}{{ question.quiz.name }}{% endblock %}
+{% block "header" %}{{ question.quiz.name }}{% endblock %}
+
+
{% block "body" %}
{% block "body" %}
-<h
1>{{ question.title }}</h1
>
+<h
2>{{ question.title }}</h2
>
<div>
<div>
-{{ question.text }}
+{{ question.text
|safe
}}
</div>
<div>
</div>
<div>
-<form method='post'>
+<form
class='question'
method='post'>
{% csrf_token %}
{{ form.answer.errors }}
{{ form.answer }}
{% if valid %}
{% csrf_token %}
{{ form.answer.errors }}
{{ form.answer }}
{% if valid %}
- <
input type='submit' /
>
+ <
button>{% trans "Send answer" %}</button
>
{% if previous_url %}
{% if previous_url %}
- <a href='{{ previous_url }}'>{% trans "Back to last question" %}</a>
+ <a
class='button'
href='{{ previous_url }}'>{% trans "Back to last question" %}</a>
{% endif %}
{% else %}
{% if valid_url %}
{% endif %}
{% else %}
{% if valid_url %}
- <a href='{{ valid_url }}'>{% trans "Back to my test" %}</a>
+ <a
class='big-button'
href='{{ valid_url }}'>{% trans "Back to my test" %}</a>
{% else %}
{% else %}
- <a href='{% url "quiz" %}'>{% trans "Start from the beginning" %}</a>
+ <a
class='big-button'
href='{% url "quiz" %}'>{% trans "Start from the beginning" %}</a>
{% endif %}
{% endif %}
{% endif %}
{% endif %}
@@
-38,8
+43,8
@@
</div>
</div>
-<div>
-{{ question.description }}
+<div
id='description'
>
+{{ question.description
|safe
}}
</div>
</div>