fix: remove obsolete htmx attributes from forms
This commit is contained in:
@@ -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()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user