fix: offer the questionnaire after every placement, the bus part to escorts

This commit is contained in:
fromme committed 2026-10-27 17:12:24 +01:00
1 parent 9fedc5b5d3
commit 2f4f9800dd
30 files changed
+311 -77

No files matched your search

@@ -262,7 +262,7 @@
</a>
<a href="{{ path('app_administrative_questionnaire_test', { 'uuid': assignment.uuid, 'r': return_url() }) }}"
class="btn btn--secondary"
title="Den Fragebogen nach einer Busbegleitung für diesen Einsatz ausprobieren, ohne etwas zu speichern">
title="Den Fragebogen für diesen Einsatz ausprobieren, ohne etwas zu speichern">
Fragebogen testen
</a>
</div>
@@ -10,12 +10,20 @@
'type': 'warning',
'message': 'Testmodus: Der Fragebogen verhält sich wie für Teamer:innen, es wird aber nichts gespeichert.'
} %}
{% if not assignment.hasBusEscort %}
{% include '_partials/_alert.html.twig' with {
'type': 'info',
'message': 'Dieser Einsatz hat keine Busbegleitung. Teamer:innen bekommen den Fragebogen hier nicht.'
} %}
{% endif %}
{% set otherVariant = path('app_administrative_questionnaire_test', { 'uuid': assignment.uuid, 'bus_escort': busEscort ? 0 : 1, 'r': app.request.query.get('r') }) %}
{% embed '_partials/_alert.html.twig' with { 'type': 'info' } %}
{% block message %}
{% if busEscort %}
Mit den Fragen zur Busfahrt, wie bei einer Busbegleitung.
{% else %}
Ohne die Fragen zur Busfahrt, wie bei einem Einsatz ohne Busbegleitung.
{% endif %}
{% if busEscort != assignment.hasBusEscort %}
Dieser Einsatz hat {{ assignment.hasBusEscort ? 'eine' : 'keine' }} Busbegleitung.
{% endif %}
<a href="{{ otherVariant }}" class="underline">{{ busEscort ? 'Ohne' : 'Mit' }} Busfahrt testen</a>
{% endblock %}
{% endembed %}
<div class="grid lg:grid-cols-3 gap-8 items-start">
<div class="lg:col-span-2">
{% if submitted is not null %}
@@ -219,10 +219,10 @@
{% endif %}
{% endif %}
{# Questionnaire after a bus escort; the edit page forwards to the read-only view once submitted #}
{# Questionnaire after the placement; the edit page forwards to the read-only view once submitted #}
{% if is_granted('QUESTIONNAIRE', disposition) %}
<h3 class="text-xl font-bold pb-4">
Fragebogen zur Busbegleitung
Fragebogen zu deinem Einsatz
</h3>
<p class="pb-4">
Wie lief dein Einsatz? Dein Feedback hilft uns, besser zu werden.
+1 -1
View File
@@ -18,7 +18,7 @@
{% if pendingQuestionnaires is not empty %}
{% embed '_partials/_alert.html.twig' with { 'type': 'info' } %}
{% block message %}
<p>Bitte fülle den Fragebogen zu deiner Busbegleitung aus:</p>
<p>Bitte fülle den Fragebogen zu deinem Einsatz aus:</p>
<ul class="pt-1">
{% for row in pendingQuestionnaires %}
{% set destination = row.disposition.assignment.destination %}