{% comment %} - config - formsets {% endcomment %} {% load floppyforms %} {% if config.next_level == 'subcategories' %}

{{ config.label }}

{% for sub_config, sub_formsets in formsets %} {% form form using sub_config.form_template with config=sub_config formsets=sub_formsets %} {% endfor %} {% else %}
{{ config.numbering|default:'' }} {{ config.label }} {% include "form/helptext.html" with helptext=config.helptext helptext_length=config.helptext_length %} {% for questiongroup_config, questiongroup_formset in formsets %} {% form form using questiongroup_config.template with config=questiongroup_config formset=questiongroup_formset %} {% endfor %}
{% endif %}