58 lines
2.5 KiB
Twig
58 lines
2.5 KiB
Twig
{% extends 'administrative/layout.html.twig' %}
|
|
|
|
{% block title %}Vorschau Hausleitungsfeedback{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="max-w-3xl">
|
|
<a href="{{ returnUrl }}" class="inline-flex items-center gap-x-1 pb-4 text-sm font-bold text-brand hover:text-brand-dark">
|
|
{{ icon('arrow-left', 'w-4 h-4 shrink-0') }}
|
|
<span>zurück</span>
|
|
</a>
|
|
<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="card mt-6 p-5">
|
|
<h2 class="section-title pb-2">
|
|
Bewerte dein Wochenteam
|
|
</h2>
|
|
<p class="pb-2 text-sm text-muted">
|
|
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-muted">{{ disposition.assignment.jobProfile.name }}</span></li>
|
|
{% else %}
|
|
<li>-</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</section>
|
|
{% endif %}
|
|
|
|
</div>
|
|
{% endblock %}
|