{% load bootstrap %} {% load survey_extras %} {% for question, fields in groups %} {% for form, prefix, suffix in fields %} {% if form.field.widget.attrs.category == category.name or not form.field.widget.attrs.category %} {% endif %} {% endfor %}
{{ question|safe }}
{{form.label|safe|linebreaksbr }} {% if form.field.required %} {% endif %}
{% for error in form.errors %}{{ error }}{% endfor %}
{% if form.field.widget.input_type == 'select' %} {% endif %}
{% endfor %}