diff --git a/src/DataObjects/TicketData.php b/src/DataObjects/TicketData.php index cd21733..13386f0 100644 --- a/src/DataObjects/TicketData.php +++ b/src/DataObjects/TicketData.php @@ -8,6 +8,8 @@ class TicketData public string $notes = '', public int $ticket = 0, public int $afterShowTicket = 0, + public int $kids6yo = 0, + public int $kids12yo = 0, ) { } } \ No newline at end of file diff --git a/src/Form/TicketForm.php b/src/Form/TicketForm.php index d838e53..2af1376 100644 --- a/src/Form/TicketForm.php +++ b/src/Form/TicketForm.php @@ -16,6 +16,8 @@ class TicketForm extends AbstractType $builder ->add('ticket', NumberType::class) ->add('afterShowTicket', NumberType::class) + ->add('kids6yo', NumberType::class) + ->add('kids12yo', NumberType::class) ->add('notes', TextareaType::class); } } \ No newline at end of file diff --git a/templates/ticket/index.html.twig b/templates/ticket/index.html.twig index 615841c..cd0ba9e 100644 --- a/templates/ticket/index.html.twig +++ b/templates/ticket/index.html.twig @@ -25,14 +25,25 @@ {{ form_start(form, { 'attr': { 'class': 'space-y-6' } }) }}