{% extends 'administrative/layout.html.twig' %} {% block title %}{{ definition.title }} (Testmodus){% endblock %} {% block content %}

{{ definition.title }}

{% include '_partials/_alert.html.twig' with { 'type': 'warning', 'message': 'Testmodus: Der Fragebogen verhält sich wie für Teamer:innen, es wird aber nichts gespeichert.' } %} {% 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 %} {{ busEscort ? 'Ohne' : 'Mit' }} Busfahrt testen {% endblock %} {% endembed %}
{% 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 } %} {% else %} {% if definition.description %}

{{ definition.description|nl2br }}

{% endif %} {% if draft %} {% include '_partials/_alert.html.twig' with { 'type': 'success', 'message': 'Der Entwurf wäre jetzt gespeichert. Im Testmodus bleiben die Angaben nur im Formular.' } %} {% endif %} {% include 'questionnaire/_form.html.twig' %} {% endif %}

Einsatz

{% include '_partials/_assignment_info.html.twig' %}
{% endblock %}