{% set column1 = [] %}
{% set column2 = [] %}
{% for child in formviewProp(form, 'children') %}
{% if child.vars.attr.class is defined and 'column-2' in child.vars.attr.class %}
{% set column2 = column2|merge([child.vars.name]) %}
{% else %}
{% set column1 = column1|merge([child.vars.name]) %}
{% endif %}
{% endfor %}
{% if column2|length > 0 %}
<div class="row">
<div class="col-12 col-md-6 col-l">
{% for field in column1 if field != 'acceptedPrivacyPolicy' %}
{{ form_row(form[field]) }}
{% endfor %}
</div>
<div class="col-12 col-md-6 col-r">
{% for field in column2 if field != 'acceptedPrivacyPolicy' %}
{{ form_row(form[field]) }}
{% endfor %}
</div>
</div>
{% if form['acceptedPrivacyPolicy'] is defined %}
<div class="row">
<div class="col-12">
{{ form_row(form['acceptedPrivacyPolicy']) }}
</div>
</div>
{% endif %}
{% else %}
{{ form_widget(form) }}
{% endif %}