{% extends "base-questionnaire.html" %} {% load questionnaire i18n %} {% load static %} {% load dynamicStyleTags %} {% load landings %} {% block title %} Questionnaire: {{ questionset.heading }} {% endblock %} {% block headextra %} {% if questionsetstylesheet|getAssociatedStylesheets %} {% endif %} {% if progress %} {% if questionset.questionnaire.name|add:"Progress"|getAssociatedStylesheets %} {% else %} {% endif %} {% endif %} {% for x in jsinclude %} {% endfor %} {% for x in cssinclude %} {% endfor %} {% if async_progress %} {% endif %} {% endblock %} {% block language %} {% for lang in LANGUAGES %}{% if not forloop.first %} |{% endif %} {{ lang.1 }} {% endfor %} {% endblock %} {% block questionnaire %} {% if progress %}
{{progress}}%
{% endif %}

{% if questionset.heading %} {% if questionset.parse_html %} {% render_with_landing questionset.heading|safe %} {% else %} {{ questionset.heading }} {% endif %} {% endif %}

{% if questionset.text %} {% if questionset.parse_html %} {% render_with_landing questionset.text|safe %} {% else %} {{ questionset.text }} {% endif %} {% endif %}
{% csrf_token %} {% for question, qdict in qlist %} {% if question.id|getAssociatedStylesheets %} {% endif %} {% with errors|dictget:question.number as error %}
{% if request.user.is_staff %} ({% trans "edit" %} {{ question.number }}) {% endif %} {% if qdict.custom %} {% if error %}
{{ error }}
{% endif %} {% include qdict.template %} {% else %}
{% if error %}
{{ error }}
{% endif %} {% include qdict.template %}
{% endif %}
{% if question.footer %} {% endif %} {% endwith %} {% endfor %}
{% if questionset.prev %} {% trans "return to previous page" %} {% endif %}
{% if debug_questionnaire %} Previous Answers: {% for answer in current_answers %} {% if forloop.first %} {% endif %} {% endfor %} {% endif %} {% endblock %}