fix: remove obsolete htmx attributes from forms
This commit is contained in:
1 parent
502b121e43
commit
400407358d
2 files changed
+2
-16
No files matched your search
@@ -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