Answer the question
In order to leave comments, you need to log in
How to make a redirect and pass the previously filled Symfony data to the form?
I am processing a form.
$form->handleRequest($request);
if ($form->isSubmitted() && $form->isValid()) {
$stripePlanCreateDTO = $form->getData();
try {
$stripePlan =
$this->stripePlanService->createStripePlan(
$stripePlanCreateDTO
);
} catch (UserExceptionInterface $e) {
$this->addFlash(
'error',
$e->getMessage()
);
return $this->redirectToRoute(
'admin.stripe_plans.create'
);
}
$this->addFlash(
'success',
$stripePlan->name()
. ' was added successfully.'
);
return $this->redirectToRoute('admin.stripe_plans.get_all');
}
Answer the question
In order to leave comments, you need to log in
What's the problem? position: absolute works as it should by default. You just need to make white-space: nowrap so that the items do not wrap. Well, use a negative indent on the left, equal to the inner indent of the dropdown, to align the text of the dropdown with the text of the control itself.
https://jsfiddle.net/e1wzyL9L/1/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question