{% extends 'otreeutils/ExtendedPage.html' %} {% load staticfiles otree_tags otreeutils_tags %} {% block app_styles %} {% endblock %} {% block content %} {{ base_form.non_field_errors }} {% for survey_form_name, survey_form in survey_forms.items %}
{% if survey_form.form_opts.form_help_initial %}
{{ survey_form.form_opts.form_help_initial|safe }}
{% endif %} {% if survey_form.form_opts.render_type == 'table' %} {% for header_label in survey_form.form_opts.header_labels %} {% endfor %} {% for field_name in survey_form.fields %} {% with field=form|get_form_field:field_name %} {% for choice in field %} {% endfor %} {% endwith %} {% endfor %}
{{ header_label }}
{% if not field.help_text.0 %}{{ field.help_text.1|safe }}{% endif %} {{ field.label_tag }} {% if field.help_text.0 %}{{ field.help_text.1|safe }}{% endif %} {{ choice.tag }}
{% else %}
{% for field_name in survey_form.fields %} {% with field=form|get_form_field:field_name %}
{% if not field.help_text.0 %}{{ field.help_text.1|safe }}{% endif %}
{{ field.errors }}
{{ field.label_tag }} {{ field }}
{% if field.help_text.0 %}{{ field.help_text.1|safe }}{% endif %}
{% endwith %} {% endfor %}
{% endif %} {% if survey_form.form_opts.form_help_final %}
{{ survey_form.form_opts.form_help_final|safe }}
{% endif %}
{% endfor %} {% next_button %} {% endblock %}