feat: let the office test the questionnaire on any assignment

This commit is contained in:
fromme committed 2026-10-27 17:07:17 +01:00
1 parent a35f91ac63
commit 9fedc5b5d3
13 files changed
+337 -29

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
{#
# A questionnaire form (App\Form\QuestionnaireType) with its two buttons. Shared by the teamer's
# page and the office's test mode, so a test shows exactly what a teamer gets.
#}
{{ form_start(form, { attr: { 'data-controller': 'questionnaire', 'data-action': 'change->questionnaire#update' } }) }}
{% for child in form|filter(child => child.vars.name not in ['draft', 'submit']) %}
{{ form_row(child) }}
{% endfor %}
<div class="flex flex-wrap items-center gap-4 pt-4">
{{ form_widget(form.submit, { attr: { class: 'btn' } }) }}
{{ form_widget(form.draft, { attr: { class: 'btn btn--secondary' } }) }}
</div>
<p class="pt-2 text-sm text-gray-500">
Als Entwurf kannst du den Fragebogen jederzeit speichern und später weiter ausfüllen.
Abgeschickt ist er endgültig.
</p>
{{ form_end(form) }}