fix: remove obsolete htmx attributes from forms

This commit is contained in:
Björn Fromme
2026-03-16 11:59:12 +01:00
parent 502b121e43
commit 400407358d
2 changed files with 2 additions and 16 deletions
@@ -58,14 +58,7 @@ class Step3Controller extends AbstractController
return $redirect; return $redirect;
} }
$form = $this->createForm(BookingCreateStep3Type::class, $bookingCreateDto, [ $form = $this->createForm(BookingCreateStep3Type::class, $bookingCreateDto);
'attr' => [
'hx-post' => $this->generateUrl('app_booking_create_step_3'),
'hx-target' => '#form-wrapper',
'hx-select' => '#form-wrapper',
'hx-swap' => 'outerHTML',
],
]);
$form->handleRequest($request); $form->handleRequest($request);
if (true === $form->isSubmitted() && true === $form->isValid()) { if (true === $form->isSubmitted() && true === $form->isValid()) {
@@ -59,14 +59,7 @@ class Step4Controller extends AbstractController
return $redirect; return $redirect;
} }
$form = $this->createForm(BookingCreateStep4Type::class, $bookingCreateDto, [ $form = $this->createForm(BookingCreateStep4Type::class, $bookingCreateDto);
'attr' => [
'hx-post' => $this->generateUrl('app_booking_create_step_4'),
'hx-target' => '#form-wrapper',
'hx-select' => '#form-wrapper',
'hx-swap' => 'outerHTML',
],
]);
$form->handleRequest($request); $form->handleRequest($request);
if (true === $form->isSubmitted() && true === $form->isValid()) { if (true === $form->isSubmitted() && true === $form->isValid()) {