feat: provision a teamer from a received application
This commit is contained in:
1 parent
d5f4b12f0a
commit
b530679658
23 files changed
+2433
-148
No files matched your search
@@ -0,0 +1,49 @@
|
||||
{% extends 'htmx_confirmation_modal.html.twig' %}
|
||||
|
||||
{% block title %}Teamer:in anlegen{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div>
|
||||
<em>{{ [submission.firstName, submission.lastName]|filter(part => part is not empty)|join(' ') }}</em>
|
||||
als Teamer:in übernehmen?
|
||||
<div class="pt-2 text-sm">
|
||||
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.
|
||||
</div>
|
||||
{# 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. #}
|
||||
<dl class="pt-4 text-sm grid grid-cols-3 gap-y-1">
|
||||
<dt class="font-bold">Geburtsdatum</dt>
|
||||
<dd class="col-span-2">
|
||||
{% if submission.dateOfBirth %}
|
||||
{{ submission.dateOfBirth|date('d.m.Y') }}
|
||||
{% else %}
|
||||
<strong>fehlt</strong> - ohne Geburtsdatum kann keine Adresse angelegt werden
|
||||
{% endif %}
|
||||
</dd>
|
||||
<dt class="font-bold">Geschlecht</dt>
|
||||
<dd class="col-span-2">{{ submission.gender }}</dd>
|
||||
<dt class="font-bold">E-Mail</dt>
|
||||
<dd class="col-span-2">{{ submission.email ?: 'fehlt' }}</dd>
|
||||
<dt class="font-bold">Adresse</dt>
|
||||
<dd class="col-span-2">
|
||||
{# 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 %}
|
||||
<strong>unvollständig</strong> - 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 %}
|
||||
</dd>
|
||||
</dl>
|
||||
{% if submission.busProAddressId %}
|
||||
<div class="pt-4 text-sm">
|
||||
In BusPro besteht für diese Bewerbung schon die Adresse
|
||||
{{ submission.busProAddressId }} - sie wird nicht erneut angelegt.
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block button_confirm %}Anlegen{% endblock %}
|
||||
Reference in new issue
Block a user