{% comment %} A simple table where the questiongroup makes makes up an entire table row. Each question is a cell, the table headers the label of the keys. Helptexts for the keys are rendered as tooltip of the table header. If config.numbered == 'display', an additional cell for the numbering is added at the beginning of each row. config: The configuration of the questiongroup formset: The (repeating) forms as formset {% endcomment %} {% load i18n %} {% load floppyforms %} {% load list_to_columns %} {% 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 %} {% for width in config.column_widths %} {% endfor %} {% if config.numbered == 'display' %} {% endif %} {% for field in formset.forms.0.visible_fields %} {% endfor %} {% for qg_form in formset.forms %} {% if config.numbered == 'display' %} {% endif %} {% for field in qg_form.visible_fields %} {% endfor %} {% for field in qg_form.hidden_fields %}{% formfield field %}{% endfor %} {% endfor %}
{% with options=config.options|get_by_keyword:field.name %} {% if options.helptext %} {{ field.label }} {% else %} {{ field.label }} {% endif %} {% endwith %}
{{ forloop.counter }}. {% formrow field using "form/question/no_label.html" %}
{% if formset.max_num > formset.min_num %}
{% endif %}