From 006865488575eac5b2f366bbe43182f1ed2433e3 Mon Sep 17 00:00:00 2001 From: lubiana Date: Thu, 15 Aug 2024 16:33:13 +0200 Subject: [PATCH] #49: change order item form labels --- src/Form/OrderItemType.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/Form/OrderItemType.php b/src/Form/OrderItemType.php index dfd10a5..49906aa 100644 --- a/src/Form/OrderItemType.php +++ b/src/Form/OrderItemType.php @@ -14,9 +14,13 @@ final class OrderItemType extends AbstractType public function buildForm(FormBuilderInterface $builder, array $options): void { $builder - ->add('name') - ->add('extras') - ->add('createdBy') + ->add(child: 'name', options: [ + 'label' => 'order item', + ]) + ->add(child: 'extras') + ->add(child: 'createdBy', options: [ + 'label' => 'your name', + ]) ; } -- 2.39.5