{% extends 'survey/base.html' %} {% load i18n %} {% load survey_extras %} {% load static %} {% block title %} {{survey.name}} {% endblock title %} {% block extrajs %} {{response_form.media}} {% if asset_context.flatpickr %} {% endif %} {% endblock %} {% block extracss %} {% if asset_context.flatpickr %} {{ block.super }} {% endif %} {% endblock %} {% block body %}

{{survey.name}}

{{survey.description|safe}}
{% if step and step != 0 %}
{% else %} {% endif %} {% csrf_token %} {% for category in categories %} {% if category.name == response_form.active_category_name or not response_form.active_category_name %}

{{category}}

{{category.description}}

{% include "survey/question.html" with groups=response_form|groups_by_category:category.name %}
{% endif %} {% empty %}

{% trans "Questions" %}

{% include "survey/question.html" with groups=response_form.groups_by_question %} {% endfor %}
{% if survey.editable_answers or response_form.response is None %} {% endif %}
{% endblock %}