{% extends "layout.html" %} {% macro make_questions(questions) %} {% for q in questions %}
{{make_question(q)}}
{% endfor %} {% endmacro %} {% macro make_question(x) %} {% if x.type == "dropdown" %} {{ dropdown(x.id, x.question, x.values, x.labels) }} {% elif x.type == "info" %}

{{ x.info }}

{% endif %} {% endmacro %} {% macro dropdown(id, question, values, labels) %}
{{question}}
{% endmacro %} {% block body %} {{super()}}
{% block questions %}
{{ make_questions(questions) }}
{% endblock %}
{% endblock %} {% block scripts %} {% endblock %}