feat: add the house manager questionnaire per travel and compact the questionnaire layout

This commit is contained in:
fromme committed 2026-11-11 11:16:37 +01:00
1 parent d760ed3cdf
commit bfef08b519
50 files changed
+2763 -180

No files matched your search

@@ -0,0 +1,58 @@
{% extends 'administrative/layout.html.twig' %}
{% block title %}Vorschau Hausleitungsfeedback{% endblock %}
{% block content %}
<div class="max-w-3xl">
<h1 class="text-2xl font-bold pb-2">
Vorschau Hausleitungsfeedback
</h1>
{% include 'house_manager/questionnaire/_travel_summary.html.twig' %}
{% include '_partials/_alert.html.twig' with {
'type': 'warning',
'message': 'Vorschau: Der Fragebogen verhält sich wie für die Hausleitung, es wird aber nichts gespeichert.'
} %}
{% if submitted is not null %}
{% include '_partials/_alert.html.twig' with {
'type': 'success',
'message': 'So würde der abgeschickte Fragebogen gespeichert. Ausgeblendete Fragen fallen dabei weg.'
} %}
{% include 'questionnaire/_answers.html.twig' with { 'answers': submitted } %}
<div class="pt-8">
<a href="{{ path('app_administrative_questionnaire_test_house_manager', { 'uuid': assignment.uuid, 'r': app.request.query.get('r') }) }}" class="btn btn--secondary">
Erneut ausprobieren
</a>
</div>
{% else %}
{% if draft %}
{% include '_partials/_alert.html.twig' with {
'type': 'success',
'message': 'Der Entwurf wäre jetzt gespeichert. In der Vorschau bleiben die Angaben nur im Formular.'
} %}
{% endif %}
{% include 'questionnaire/_form.html.twig' %}
<section class="pt-8">
<h2 class="text-xl font-bold pb-2">
Bewerte dein Wochenteam
</h2>
<p class="pb-2 text-sm text-gray-500">
Hier verlinkt die Hausleitung jede:n Teamer:in in die Bewertung:
</p>
<ul class="list-disc pl-5">
{% for disposition in dispositions %}
<li>{{ disposition.teamer.fullName }} <span class="text-gray-500">{{ disposition.assignment.jobProfile.name }}</span></li>
{% else %}
<li>-</li>
{% endfor %}
</ul>
</section>
{% endif %}
<div class="pt-8">
<a href="{{ returnUrl }}" class="underline">
zurück
</a>
</div>
</div>
{% endblock %}