{% macro createQuestionnaire(q) -%} {% set default_field_width = 400 %} {% if config["LOG_GRID_CLICKS"] %} {% endif %}
{{ q.instructions | safe }}
{% for question in q.questions %}
{% if question.title %}

{{ question.title | safe }}

{% elif question.instructions %}

{{ question.instructions | safe }}

{% endif %}
{% if question.questiontype == "textview" %} {{ question.text | safe }} {% endif %} {% if question.questiontype == "radiolist" %} {% set labels = question.labels %} {% if question.shuffle %} {% do shuffle(question.labels) %} {% endif %} {% for label in question.labels %}
{% endfor %} {% endif %} {% if question.questiontype == "checklist" %} {% if question.shuffle %} {% do shuffle(question.questions) %} {% endif %} {% for check_question in question.questions %}
{% endfor %} {% endif %} {% if question.questiontype == "slider" %}
{% endif %} {% if question.questiontype == "field" %} {% endif %} {% if question.questiontype == "num_field" %} {% endif %} {% if question.questiontype == "multi_field" %} {% endif %} {% if question.questiontype == "drop_down" %} {% endif %} {% if question.questiontype == "radiogrid" %} {% if question.shuffle %} {% do shuffle(question.q_text) %} {% endif %} {% for label in question.labels %} {% endfor %} {% for grid_question in question.q_text %} {% for label in question.labels %} {% endfor %} {% endfor %}
{{ label }}
{{ grid_question.text }}
{% endif %}
{% endfor %}
{{ q.code |safe if q.code }} {%- endmacro %}