{% extends 'admin/layout.html.twig' %} {% block title %}Eingegangenes Formular{% endblock %} {% macro row(label, value) %}
{{ label }}
{% 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 %}

zurück
{{ _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(', ')) }}
{{ _self.row('Formularkennung', submission.form) }} {{ _self.row('Quelle', submission.pageUrl) }}

Bearbeitung

{{ _self.row('1. Mail versendet', submission.firstMailSentAt ? submission.firstMailSentAt|date('d.m.Y, H:i') : null) }} {{ _self.row('2. Mail versendet', submission.secondMailSentAt ? submission.secondMailSentAt|date('d.m.Y, H:i') : null) }}
{% if submission.email %}
{% else %}
Dieses Formular enthält keine E-Mail-Adresse - es kann keine Mail versendet werden.
{% endif %}
{{ form_start(callsForm) }}
{{ form_row(callsForm.firstCallHeld) }} {% if submission.firstCallHeldAt %}
geführt am {{ submission.firstCallHeldAt|date('d.m.Y') }}
{% endif %} {{ form_row(callsForm.secondCallHeld) }} {% if submission.secondCallHeldAt %}
geführt am {{ submission.secondCallHeldAt|date('d.m.Y') }}
{% endif %}
{{ form_widget(callsForm.save, { 'attr': { 'class': 'btn btn--small' } }) }} {{ form_rest(callsForm) }} {{ form_end(callsForm) }}
{{ _self.row('übernommen am', submission.teamerCreatedAt ? submission.teamerCreatedAt|date('d.m.Y, H:i') : null) }}
{% 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 %}
{% endif %} {% endblock %}