diff --git a/.changes/unreleased/UX-20251126-133910.yaml b/.changes/unreleased/UX-20251126-133910.yaml new file mode 100644 index 000000000..474e52fac --- /dev/null +++ b/.changes/unreleased/UX-20251126-133910.yaml @@ -0,0 +1,6 @@ +kind: UX +body: Improve accessibility of event form +time: 2025-11-26T13:39:10.462348982+01:00 +custom: + Issue: "474" + SchemaChange: No schema change diff --git a/src/Bundle/ChillEventBundle/Controller/ParticipationController.php b/src/Bundle/ChillEventBundle/Controller/ParticipationController.php index 7fac83bf5..b100e47cd 100644 --- a/src/Bundle/ChillEventBundle/Controller/ParticipationController.php +++ b/src/Bundle/ChillEventBundle/Controller/ParticipationController.php @@ -486,7 +486,7 @@ final class ParticipationController extends AbstractController return $this->redirectToRoute( 'chill_event__event_show', - ['event_id' => $event->getId()] + ['id' => $event->getId()] ); } diff --git a/src/Bundle/ChillEventBundle/Resources/views/Event/edit.html.twig b/src/Bundle/ChillEventBundle/Resources/views/Event/edit.html.twig index 55c2fc21f..464233008 100644 --- a/src/Bundle/ChillEventBundle/Resources/views/Event/edit.html.twig +++ b/src/Bundle/ChillEventBundle/Resources/views/Event/edit.html.twig @@ -14,8 +14,25 @@ {{ form_errors(edit_form) }} {{ form_row(edit_form.circle) }} {{ form_row(edit_form.name) }} - {{ form_row(edit_form.date) }} - +
+ +
+ {{ form_widget(edit_form.date.date, { + attr: { + class: 'form-control', + style: 'flex: 1 1 auto;' + } + }) }} + {{ form_widget(edit_form.date.time, { + attr: { + class: 'form-control', + style: 'flex: 0 0 200px; max-width: 200px; white-space: nowrap;' + } + }) }} +
+
{{ form_row(edit_form.type, { label: "Event type" }) }} {{ form_row(edit_form.themes) }} {{ form_row(edit_form.moderator) }} diff --git a/src/Bundle/ChillEventBundle/Resources/views/Event/new.html.twig b/src/Bundle/ChillEventBundle/Resources/views/Event/new.html.twig index 2f5a82c8d..6fec850c6 100644 --- a/src/Bundle/ChillEventBundle/Resources/views/Event/new.html.twig +++ b/src/Bundle/ChillEventBundle/Resources/views/Event/new.html.twig @@ -16,7 +16,25 @@ {{ form_errors(form) }} {{ form_row(form.name) }} {{ form_row(form.circle) }} - {{ form_row(form.date) }} +
+ +
+ {{ form_widget(form.date.date, { + attr: { + class: 'form-control', + style: 'flex: 1 1 auto;' + } + }) }} + {{ form_widget(form.date.time, { + attr: { + class: 'form-control', + style: 'flex: 0 0 200px; max-width: 200px; white-space: nowrap;' + } + }) }} +
+
{{ form_row(form.type, { label: "Event type" }) }} {{ form_row(form.themes) }} {{ form_row(form.moderator) }}