{% 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 %}
{% endif %} {% for field in formset.forms.0.visible_fields %} | {% with options=config.options|get_by_keyword:field.name %} {% if options.helptext %} {{ field.label }} {% else %} {{ field.label }} {% endif %} {% endwith %} | {% endfor %}
---|---|
{{ forloop.counter }}. | {% endif %} {% for field in qg_form.visible_fields %}{% formrow field using "form/question/no_label.html" %} | {% endfor %} {% for field in qg_form.hidden_fields %}{% formfield field %}{% endfor %}