{% comment %} This renders a question with image checkboxes where for each checkbox (4 columns), an additional questiongroup is rendered next to it (8 columns). The additional questiongroup corresponds to the list position of the image checkbox list. {% endcomment %} {% load static %} {% load floppyforms %} {% load list_to_columns %} {% for group_name, choices in optgroups %} {% for choice in choices %}
  • {% with subformset=additional_qg|get_by_index:forloop.counter value=None %} {% form form using subformset.0.template with config=subformset.0 formset=subformset.1 %} {% endwith %}
    {% endfor %} {% endfor %}