{% load floppyforms %} {% load list_to_columns %} {% load i18n static %}
{% if config.label %} <{{ config.label_tag|default:"h4" }} class="{% if config.label_class %}{{ config.label_class }}{% endif %}"> {{ config.label }} {% endif %} {% include "form/helptext.html" with helptext=config.helptext helptext_length=config.helptext_length %} {{ formset.management_form }} {% include "form/errors.html" with errors=formset.non_form_errors %} {% form form using %} {% for qg_form in formset.forms %} {% with initial_link_data=config.initial_links|get_by_index:forloop.counter0 %}
{% for field in qg_form.visible_fields %} {% with template=config.templates|get_by_keyword:field.name options=config.options|get_by_keyword:field.name %} {% if template %} {% formrow field using template %} {% else %} {% formrow field using "form/question/default.html" %} {% endif %} {% endwith %} {% endfor %} {% for field in qg_form.hidden_fields %}{% formfield field %}{% endfor %}
{% endwith %} {% endfor %} {% if formset.max_num > formset.min_num %}
{% endif %} {% endform %}