{{ js_template|safe }}
{# If no form is present, the Javascript will load the results instead. #} {% if not choices %}
{% for answer, details in answers %} {% endfor %} {% for key, question in questions.items %} {% for answer, answer_details in answers %} {% endfor %} {% endfor %}
{{details.label}}
{{question}}
{% endif %}