{% if value is same as(true) %}
ja
{% elseif value is same as(false) %}
nein
{% elseif value is empty %}
-
{% else %}
{{ value|nl2br }}
{% endif %}
{% endmacro %}
{% block content %}
{{ submission.formLabel }}
{% if submission.lastName or submission.firstName %}
- {{ [submission.firstName, submission.lastName]|filter(part => part is not empty)|join(' ') }}
{% endif %}
{{ _self.row('eingegangen am', submission.submittedAt|date('d.m.Y, H:i')) }}
{{ _self.row('Name', [submission.firstName, submission.lastName]|filter(part => part is not empty)|join(' ')) }}
{{ _self.row('Geburtsdatum', submission.dateOfBirth ? submission.dateOfBirth|date('d.m.Y') : submission.birthDate) }}
{{ _self.row('Geschlecht', submission.gender) }}
{# Three states: the form said yes, said no, or never asked - and only the first one
earns the automatic receipt mail, so "-" is not the same as "nein" here. #}
{{ _self.row('EU (inkl. Schweiz)', submission.eu) }}
{{ _self.row('E-Mail', submission.email) }}
{{ _self.row('Telefon', submission.phone) }}
{{ _self.row('Mobil', submission.mobile) }}
{{ _self.row('Adresse', [submission.street, [submission.zipCode, submission.city]|filter(part => part is not empty)|join(' ')]|filter(part => part is not empty)|join(', ')) }}
{% if submission.user and submission.user.teamer %}
Teamer:innenprofil öffnen
{% elseif submission.email %}
{% if submission.busProAddressId %}
{# Step 1 is done and the rest is not: naming it here is what makes a
retry a resume rather than a guess. #}
Die BusPro-Adresse {{ submission.busProAddressId }} wurde schon angelegt,
die Übernahme wurde aber nicht abgeschlossen.
{% endif %}
{% else %}
Ohne E-Mail-Adresse kann kein Teamer:innenkonto angelegt werden.
{% endif %}
Angaben aus dem Formular
{% if submission.details is empty %}
Das Formular hat über die Stammdaten hinaus nichts erfasst.
{% else %}
{% for label, answer in submission.details %}
{{ _self.row(label, answer is iterable ? answer|join(', ') : answer) }}
{% endfor %}