{% macro createQuestionnaire(q, q_html, print_ids=False) -%} {% if config["LOG_GRID_CLICKS"] %} {% endif %}
{{ q.instructions | safe }}
{% for question in q.questions %} {% if 'enabled' in question and not question.enabled %} {% else %} {% if question and (not question.for_conditions or session['condition'] in question.for_conditions)%} {% if question.title %}
{{ question.title | safe }}
{% endif %}
{% if question.instructions %}
{% if print_ids and 'id' in question %}[{{ question.id }}] {% endif %}{{ question.instructions | safe }}
{% endif %}
{{ q_html[loop.index0] | safe }}
{% endif %} {% endif %} {% endfor %}
{{ q.code |safe if q.code }} {%- endmacro %}