{% comment %} Two columns (4 / 8). The first two questions (assumed to be type of user involvement) are rendered in the first column, all others in the second column. {% endcomment %} {% load list_to_columns %} {% for questiongroup in questiongroups %}
{% if config.label and forloop.first %}
<{{ config.label_tag|default:"h4" }}>{{ config.label }}
{% endif %}
{% for question in questiongroup %} {% if forloop.counter <= 2 %} {{ question }} {% endif %} {% endfor %}
{% with data=raw_questions|get_by_index:forloop.counter0 %} {% if data.key_39 %} {# User link (with ID)#} {{ questiongroup.2 }} {% else %} {# Address details of a non-registered user #}

{{ data.key_41 }} {{ data.key_35 }}

{{ data.key_2 }}

{{ data.label_key_4 }}: {{ data.key_4 }}

{% endif %} {% endwith %}
{% endfor %}