{% comment %} This table needs to have form_config "table_columns" specified, it defines the number of columns used for the table. A table with [table_columns] columns, each cell containing a question. If there are more than [table_columns] questions, additional rows are created. Table headers are only created for the first [table_columns] questions! No buttons to add or remove additional questiongroups! config: The configuration of the questiongroup formset: The (repeating) forms as formset {% endcomment %} {% load i18n %} {% load floppyforms %} {% load list_to_columns %} {% with table_columns=config.table_columns %}
{{ field.label }} | {% endif %} {% if forloop.counter == table_columns %}
---|
{% formrow field using "form/question/no_label.html" %} | {% if forloop.last %}