{% extends 'htmx_confirmation_modal.html.twig' %} {% block title %}Teamer:in anlegen{% endblock %} {% block content %}
{{ [submission.firstName, submission.lastName]|filter(part => part is not empty)|join(' ') }} als Teamer:in übernehmen?
Dabei wird in BusPro eine Adresse angelegt und das Teamer-Merkmal gesetzt. Kennt BusPro die Person schon, wird die vorhandene Adresse verwendet. Anschließend entsteht hier das Teamer:innenkonto, und BusPro schickt eine Mail zum Setzen des Passworts.
{# The three writes cannot be undone from here, so what goes to BusPro is shown before it goes, not afterwards in a log entry nobody reads. #}
Geburtsdatum
{% if submission.dateOfBirth %} {{ submission.dateOfBirth|date('d.m.Y') }} {% else %} fehlt - ohne Geburtsdatum kann keine Adresse angelegt werden {% endif %}
Geschlecht
{{ submission.gender }}
E-Mail
{{ submission.email ?: 'fehlt' }}
Adresse
{# Street and postcode are mandatory in BusPro, so step 1 fails without them. Said here, before the write, rather than only in the error message afterwards. #} {% if submission.street is empty or submission.zipCode is empty or submission.city is empty %} unvollständig - ohne Straße, PLZ und Ort kann BusPro keine Adresse anlegen {% else %} {{ [submission.street, [submission.zipCode, submission.city]|filter(part => part is not empty)|join(' ')]|filter(part => part is not empty)|join(', ') }} {% endif %}
{% if submission.busProAddressId %}
In BusPro besteht für diese Bewerbung schon die Adresse {{ submission.busProAddressId }} - sie wird nicht erneut angelegt.
{% endif %}
{% endblock %} {% block button_confirm %}Anlegen{% endblock %}