{% 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 %} {% if config.label %}
{% endif %} {% for field in formset.forms.0.visible_fields %} {% if forloop.counter != 3 and forloop.counter != 5 %} | {% with options=config.options|get_by_keyword:field.name %} {% if options.helptext %} {{ field.label }} {% else %} {{ field.label }} {% endif %} {% endwith %} | {% endif %} {% endfor %}{% trans "Remove" %} | |
---|---|---|---|
{{ forloop.counter }}. | {% endif %} {% for field in qg_form.visible_fields %} {% if forloop.counter == 3 %}{% formrow field using "form/question/inline_start.html" %} {% elif forloop.counter == 4 %} {% formrow field using "form/question/inline_middle.html" %} {% elif forloop.counter == 5 %} {% formrow field using "form/question/inline_end.html" %} | {% else %}{% formrow field using "form/question/no_label.html" %} | {% endif %} {% endfor %}