{% endif %}
{% if config.label %}
<{{ config.label_tag|default:"h4" }} class="{% if config.label_class %}{{ config.label_class }}{% endif %}">{{ config.label }}{{ config.label_tag|default:"h4" }}>
{% endif %}
{% if config.helptext_position|default:"default" == 'default' %}
{% include "form/helptext.html" with helptext=config.helptext helptext_length=config.helptext_length %}
{% endif %}
{{ formset.management_form }}
{% include "form/errors.html" with errors=formset.non_form_errors %}
{% for qg_form in formset.forms %}
{% if config.numbered == 'prefix' %}
?
{% endif %}
{% for field in qg_form.visible_fields %}
{% with template=config.templates|get_by_keyword:field.name options=config.options|get_by_keyword:field.name label=field.label %}
{% 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 %}