X-Git-Url: https://git.mdrn.pl/koed-quiz.git/blobdiff_plain/2c2b8f122dd789a089ac5054e112f59874c01a70..7c0b069529d4c0ebe9c398ac733b445ff24495ad:/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..32518a3 100755 --- a/apps/quiz/templates/quiz/question_detail.html +++ b/apps/quiz/templates/quiz/question_detail.html @@ -2,35 +2,42 @@ {% load i18n %} {% load url from future %} + +{% block "title" %}{{ question.quiz.name }}{% endblock %} +{% block "header" %}{{ question.quiz.name }}{% endblock %} + + {% block "body" %} -

{{ question.title }}

-
-{{ question.text }} -
+

{{ question.title }}

+{% if question.text %} +
+ {{ question.text|safe }} +
+{% endif %}
-
+ {% csrf_token %} {{ form.answer.errors }} {{ form.answer }} {% if valid %} - + {% if previous_url %} - {% trans "Back to last question" %} + {% trans "Back to last question" %} {% endif %} {% else %} {% if valid_url %} - {% trans "Back to my test" %} + {% trans "Back to my test" %} {% else %} - {% trans "Start from the beginning" %} + {% trans "Start from the beginning" %} {% endif %} {% endif %} @@ -38,9 +45,11 @@
-
-{{ question.description }} -
+{% if question.description %} +
+ {{ question.description|safe }} +
+{% endif %} {% endblock %}