{% 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.user_id %} {# User link (with ID)#} {{ questiongroup.2 }} {% else %} {# Address details of a non-registered user #}

{{ data.person_lastname|default:'' }} {{ data.person_firstname|default:'' }}

{% if data.person_phone_1 or data.person_phone_2 %}

{{ data.person_phone_1|default:"" }}{% if data.person_phone_1 and data.person_phone_2 %} / {% endif %}{{ data.person_phone_2|default:"" }}

{% endif %} {% if data.person_email_1 or data.person_email_2 %}

{{ data.person_email_1|default:"" }}{% if data.person_email_1 and data.person_email_2 %} / {% endif %}{{ data.person_email_2|default:"" }}

{% endif %}
{% if data.person_institution_name %}

{{ data.person_institution_name }}

{% endif %} {% if data.person_address %}

{{ data.person_address }}

{% endif %}

{{ data.country.0 }}

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