{% extends 'admin/layout.html.twig' %} {% set name = [submission.firstName, submission.lastName]|filter(part => part is not empty)|join(' ') %} {% block title %}Eingegangenes Formular{% endblock %} {% macro value(value) %} {% if value is same as(true) %} ja {% elseif value is same as(false) %} nein {% elseif value is empty %} - {% else %} {{ value|nl2br }} {% endif %} {% endmacro %} {# label and value side by side, as on the teamer profile; `narrow` for the aside #} {% macro fields(fields, narrow = false) %}
{% for label, value in fields %}
{{ label }}
{{ _self.value(value) }}
{% endfor %}
{% endmacro %} {% block content %} {{ include('_partials/_back_link.html.twig', { 'url': returnUrl }) }}

{{ submission.formLabel }}{% if name %} - {{ name }}{% endif %}

eingegangen am {{ submission.submittedAt|date('d.m.Y, H:i') }} Uhr

Stammdaten

{{ _self.fields({ 'Name': name, 'Geburtsdatum': submission.dateOfBirth ? submission.dateOfBirth|date('d.m.Y') : submission.birthDate, 'Geschlecht': submission.gender, 'EU (inkl. Schweiz)': submission.eu, 'E-Mail': submission.email, 'Telefon': submission.phone, 'Mobil': submission.mobile, 'Adresse': [submission.street, [submission.zipCode, submission.city]|filter(part => part is not empty)|join(' ')]|filter(part => part is not empty)|join(', '), }) }} {# EU has 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". #}

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 %}
{{ label }}
{{ _self.value(answer is iterable ? answer|join(', ') : answer) }}
{% endfor %}
{% endif %}

Formular

{{ _self.fields({ 'Formularkennung': submission.form, 'Quelle': submission.pageUrl, }) }}
{% endblock %}