wip: refactor to cards with individual participant forms

This commit is contained in:
Björn Fromme
2026-03-16 11:59:10 +01:00
parent 33e1aea80c
commit de8cbf6178
22 changed files with 866 additions and 212 deletions
@@ -13,6 +13,9 @@ use Symfony\Component\Form\FormInterface;
* This trait contains common form navigation logic used across different
* form services and types. It centralizes the logic for finding root forms
* and extracting booking DTOs from form hierarchies.
*
* Note: Card-based flows pass BookingDto via form options instead of
* relying on form tree traversal.
*/
trait FormTraversalTrait
{
@@ -20,8 +23,8 @@ trait FormTraversalTrait
* Gets the BookingDto from the root of the form tree.
*
* This helper method traverses up the form tree to find the root form
* and extracts the BookingDto data. This is shared logic used
* by both create and edit participant forms.
* and extracts the BookingDto data. This is used as a fallback when
* BookingDto is not passed explicitly via form options.
*
* @param FormInterface $form The form to start traversing from
*