@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | $builder |
37 | 37 | ->add('date', DateType::class, ['label' => 'gestock.date', 'widget' => 'single_text', |
38 | 38 | 'format' => 'dd MMM yyyy', 'html5' => false, 'input' => 'datetime', |
39 | - 'attr' => ['class' => 'form-control',],]) |
|
39 | + 'attr' => ['class' => 'form-control', ], ]) |
|
40 | 40 | ->add('status', HiddenType::class) |
41 | 41 | ->add('amount', HiddenType::class) |
42 | 42 | ; |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | */ |
48 | 48 | public function configureOptions(OptionsResolver $resolver) |
49 | 49 | { |
50 | - $resolver->setDefaults(['data_class' => 'AppBundle\Entity\Stocks\Inventory',]); |
|
50 | + $resolver->setDefaults(['data_class' => 'AppBundle\Entity\Stocks\Inventory', ]); |
|
51 | 51 | } |
52 | 52 | |
53 | 53 | /** |
@@ -37,28 +37,28 @@ |
||
37 | 37 | $builder |
38 | 38 | ->add('inventory', EntityType::class, ['class' => 'AppBundle:Stocks\Inventory', 'choice_label' => 'id', |
39 | 39 | 'label' => 'gestock.id', 'translation_domain' => 'messages', 'empty_data' => null, |
40 | - 'attr'=> ['class' => 'form-control', 'readonly' => true,],]) |
|
40 | + 'attr'=> ['class' => 'form-control', 'readonly' => true, ], ]) |
|
41 | 41 | ->add('article', EntityType::class, ['class' => 'AppBundle:Settings\Article', 'choice_label' => 'name', |
42 | 42 | 'label' => 'title', 'translation_domain' => 'gs_articles', 'empty_data' => null, |
43 | - 'attr'=> ['class' => 'form-control', 'readonly' => true,],]) |
|
43 | + 'attr'=> ['class' => 'form-control', 'readonly' => true, ], ]) |
|
44 | 44 | ->add('quantity', NumberType::class, ['scale' => 3, 'grouping' => true, 'empty_data' => '0,000', |
45 | 45 | 'label' => 'settings.quantity', 'translation_domain' => 'gs_articles', |
46 | - 'attr'=> ['class' => 'inventory form-control', 'readonly' => true,],]) |
|
46 | + 'attr'=> ['class' => 'inventory form-control', 'readonly' => true, ], ]) |
|
47 | 47 | ->add('realstock', NumberType::class, ['scale' => 3, 'grouping' => true, 'empty_data' => '0,000', |
48 | 48 | 'label' => 'seizure.realstock', 'translation_domain' => 'gs_inventories', |
49 | - 'attr'=> ['class' => 'inventory form-control',],]) |
|
49 | + 'attr'=> ['class' => 'inventory form-control', ], ]) |
|
50 | 50 | ->add('unitStorage', EntityType::class, ['class' => 'AppBundle:Settings\Diverse\UnitStorage', |
51 | 51 | 'choice_label' => 'abbr', 'label' => 'gestock.settings.diverse.unitstorage', 'empty_data' => null, |
52 | - 'attr'=> ['class' => 'form-control', 'readonly' => true,],]) |
|
52 | + 'attr'=> ['class' => 'form-control', 'readonly' => true, ], ]) |
|
53 | 53 | ->add('price', MoneyType::class, ['scale' => 3, 'grouping' => true, 'currency' => 'EUR', |
54 | 54 | 'label' => 'settings.price', 'translation_domain' => 'gs_articles', |
55 | - 'attr'=> ['class' => 'inventory form-control', 'readonly' => true,],]) |
|
55 | + 'attr'=> ['class' => 'inventory form-control', 'readonly' => true, ], ]) |
|
56 | 56 | ->add('total', MoneyType::class, ['scale' => 3, 'grouping' => true, 'currency' => 'EUR', |
57 | 57 | 'label' => 'seizure.total', 'translation_domain' => 'gs_inventories', 'mapped' => false, |
58 | - 'attr'=> ['class' => 'inventory form-control', 'readonly' => true,],]) |
|
58 | + 'attr'=> ['class' => 'inventory form-control', 'readonly' => true, ], ]) |
|
59 | 59 | ->add('gap', NumberType::class, ['scale' => 3, 'grouping' => true, 'label' => 'seizure.gap', |
60 | 60 | 'translation_domain' => 'gs_inventories', 'mapped' => false, |
61 | - 'attr'=> ['class' => 'inventory form-control', 'readonly' =>true,],]); |
|
61 | + 'attr'=> ['class' => 'inventory form-control', 'readonly' =>true, ], ]); |
|
62 | 62 | } |
63 | 63 | |
64 | 64 | /** |
@@ -40,49 +40,49 @@ discard block |
||
40 | 40 | public function buildForm(FormBuilderInterface $builder, array $options) |
41 | 41 | { |
42 | 42 | $builder |
43 | - ->add('name', TextType::class, ['label' => 'gestock.name', 'attr' => ['class' => 'form-control',],]) |
|
43 | + ->add('name', TextType::class, ['label' => 'gestock.name', 'attr' => ['class' => 'form-control', ], ]) |
|
44 | 44 | ->add('address', TextType::class, ['label' => 'gestock.address', |
45 | - 'attr' => ['placeholder' => 'gestock.address', 'class' => 'form-control',],]) |
|
45 | + 'attr' => ['placeholder' => 'gestock.address', 'class' => 'form-control', ], ]) |
|
46 | 46 | ->add('zipcode', TextType::class, ['attr' => ['placeholder' => 'gestock.zipcode', |
47 | - 'class' => 'form-control half',],]) |
|
47 | + 'class' => 'form-control half', ], ]) |
|
48 | 48 | ->add('town', TextType::class, ['attr' => ['placeholder' => 'gestock.town', |
49 | - 'class' => 'form-control half',],]) |
|
49 | + 'class' => 'form-control half', ], ]) |
|
50 | 50 | ->add('phone', PhoneNumberType::class, ['default_region' => 'FR', 'format' => PhoneNumberFormat::NATIONAL, |
51 | - 'widget' => PhoneNumberType::WIDGET_COUNTRY_CHOICE, 'country_choices' => ['FR', 'GB', 'DE', 'IT',], |
|
52 | - 'preferred_country_choices' => ['FR',], 'label' => 'gestock.phone',]) |
|
51 | + 'widget' => PhoneNumberType::WIDGET_COUNTRY_CHOICE, 'country_choices' => ['FR', 'GB', 'DE', 'IT', ], |
|
52 | + 'preferred_country_choices' => ['FR', ], 'label' => 'gestock.phone', ]) |
|
53 | 53 | ->add('fax', PhoneNumberType::class, ['default_region' => 'FR', 'format' => PhoneNumberFormat::NATIONAL, |
54 | - 'widget' => PhoneNumberType::WIDGET_COUNTRY_CHOICE, 'country_choices' => ['FR', 'GB', 'DE', 'IT',], |
|
55 | - 'preferred_country_choices' => ['FR',], 'label' => 'gestock.fax', |
|
56 | - 'attr' => ['class' => 'form-control',]]) |
|
57 | - ->add('mail', EmailType::class, ['label' => 'gestock.mail', 'attr' => ['class' => 'form-control',]]) |
|
58 | - ->add('contact', TextType::class, ['label' => 'gestock.contact', 'attr' => ['class' => 'form-control',],]) |
|
54 | + 'widget' => PhoneNumberType::WIDGET_COUNTRY_CHOICE, 'country_choices' => ['FR', 'GB', 'DE', 'IT', ], |
|
55 | + 'preferred_country_choices' => ['FR', ], 'label' => 'gestock.fax', |
|
56 | + 'attr' => ['class' => 'form-control', ]]) |
|
57 | + ->add('mail', EmailType::class, ['label' => 'gestock.mail', 'attr' => ['class' => 'form-control', ]]) |
|
58 | + ->add('contact', TextType::class, ['label' => 'gestock.contact', 'attr' => ['class' => 'form-control', ], ]) |
|
59 | 59 | ->add('gsm', PhoneNumberType::class, ['default_region' => 'FR', 'format' => PhoneNumberFormat::NATIONAL, |
60 | - 'widget' => PhoneNumberType::WIDGET_COUNTRY_CHOICE, 'country_choices' => ['FR', 'GB', 'DE', 'IT',], |
|
61 | - 'preferred_country_choices' => ['FR',], 'label' => 'gestock.gsm', |
|
62 | - 'attr' => ['class' => 'form-control',]]) |
|
60 | + 'widget' => PhoneNumberType::WIDGET_COUNTRY_CHOICE, 'country_choices' => ['FR', 'GB', 'DE', 'IT', ], |
|
61 | + 'preferred_country_choices' => ['FR', ], 'label' => 'gestock.gsm', |
|
62 | + 'attr' => ['class' => 'form-control', ]]) |
|
63 | 63 | /** |
64 | 64 | * Délai de livraison A = jour de Cmde, |
65 | 65 | * (B, C, D, E) = jour de livraison |
66 | 66 | */ |
67 | 67 | ->add('delaydeliv', ChoiceType::class, ['choices' => ['form.atob' => 1, 'form.atoc' => 2, |
68 | - 'form.atod' => 3, 'form.atoe' => 4,], 'choices_as_values' => true, 'label' => 'settings.delay', |
|
69 | - 'translation_domain' => 'gs_suppliers', 'attr' => ['class' => 'form-control half',]]) |
|
68 | + 'form.atod' => 3, 'form.atoe' => 4, ], 'choices_as_values' => true, 'label' => 'settings.delay', |
|
69 | + 'translation_domain' => 'gs_suppliers', 'attr' => ['class' => 'form-control half', ]]) |
|
70 | 70 | /** |
71 | 71 | * Choix du jour de la semaine pour les Cmdes |
72 | 72 | * Numérotation voir http://php.net/manual/fr/function.date.php format 'N' |
73 | 73 | */ |
74 | 74 | ->add('orderdate', ChoiceType::class, ['choices' => ['Monday' => 1, 'Tuesday' => 2, 'Wednesday' => 3, |
75 | - 'Thursday' => 4, 'Friday' => 5, 'Saturday' => 6, 'Sunday' => 7,], 'choices_as_values' => true, |
|
75 | + 'Thursday' => 4, 'Friday' => 5, 'Saturday' => 6, 'Sunday' => 7, ], 'choices_as_values' => true, |
|
76 | 76 | 'choice_translation_domain' => true, 'translation_domain' => 'messages', 'label' => 'day_order', |
77 | - 'attr' => ['class' => 'form-control',], 'expanded' => true, 'multiple' => true,]) |
|
77 | + 'attr' => ['class' => 'form-control', ], 'expanded' => true, 'multiple' => true, ]) |
|
78 | 78 | ->add('familyLog', EntityType::class, ['class' => 'AppBundle:Settings/Diverse/FamilyLog', |
79 | - 'query_builder' => function (EntityRepository $er) { |
|
79 | + 'query_builder' => function(EntityRepository $er) { |
|
80 | 80 | return $er->createQueryBuilder('f') |
81 | 81 | ->orderBy('f.path', 'ASC'); |
82 | 82 | }, 'choice_label' => 'indentedName', 'multiple' => false, |
83 | 83 | 'placeholder' => 'gestock.settings.diverse.choice_family', 'empty_data' => null, |
84 | - 'label' => 'gestock.settings.diverse.familylog', 'attr' => ['class' => 'form-control half',]]) |
|
85 | - ->add('active', HiddenType::class, ['data' => true,]); |
|
84 | + 'label' => 'gestock.settings.diverse.familylog', 'attr' => ['class' => 'form-control half', ]]) |
|
85 | + ->add('active', HiddenType::class, ['data' => true, ]); |
|
86 | 86 | } |
87 | 87 | |
88 | 88 | /** |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | */ |
91 | 91 | public function configureOptions(OptionsResolver $resolver) |
92 | 92 | { |
93 | - $resolver->setDefaults(['data_class' => 'AppBundle\Entity\Settings\Supplier',]); |
|
93 | + $resolver->setDefaults(['data_class' => 'AppBundle\Entity\Settings\Supplier', ]); |
|
94 | 94 | } |
95 | 95 | |
96 | 96 | /** |
@@ -35,13 +35,13 @@ |
||
35 | 35 | { |
36 | 36 | $builder |
37 | 37 | ->add('inventory_style', ChoiceType::class, ['choices' => ['global' => 'gestock.settings.settings.global', |
38 | - 'zonestorage' => 'gestock.settings.settings.zone_storage',], 'expanded' => true, 'multiple' => false, |
|
39 | - 'label' => 'gestock.settings.settings.style_inventory',]) |
|
38 | + 'zonestorage' => 'gestock.settings.settings.zone_storage', ], 'expanded' => true, 'multiple' => false, |
|
39 | + 'label' => 'gestock.settings.settings.style_inventory', ]) |
|
40 | 40 | ->add('calculation', ChoiceType::class, ['choices' => ['fifo' => 'gestock.settings.settings.fifo', |
41 | - 'weighted' => 'gestock.settings.settings.weighted',], 'expanded' => true, 'multiple' => false, |
|
42 | - 'label' => 'gestock.settings.settings.calculation',]) |
|
41 | + 'weighted' => 'gestock.settings.settings.weighted', ], 'expanded' => true, 'multiple' => false, |
|
42 | + 'label' => 'gestock.settings.settings.calculation', ]) |
|
43 | 43 | ->add('currency', CurrencyType::class, ['multiple' => false, 'expanded' => false, |
44 | - 'preferred_choices' => ['EUR'], 'label' => 'gestock.settings.settings.currency',]); |
|
44 | + 'preferred_choices' => ['EUR'], 'label' => 'gestock.settings.settings.currency', ]); |
|
45 | 45 | } |
46 | 46 | |
47 | 47 | /** |
@@ -35,20 +35,20 @@ |
||
35 | 35 | public function buildForm(FormBuilderInterface $builder, array $options) |
36 | 36 | { |
37 | 37 | $builder |
38 | - ->add('name', TextType::class, ['label' => 'gestock.settings.company.name',]) |
|
39 | - ->add('status', TextType::class, ['label' => 'gestock.settings.company.status',]) |
|
40 | - ->add('address', TextType::class, ['label' => 'gestock.address',]) |
|
41 | - ->add('zipcode', TextType::class, ['label' => 'gestock.zipcode',]) |
|
38 | + ->add('name', TextType::class, ['label' => 'gestock.settings.company.name', ]) |
|
39 | + ->add('status', TextType::class, ['label' => 'gestock.settings.company.status', ]) |
|
40 | + ->add('address', TextType::class, ['label' => 'gestock.address', ]) |
|
41 | + ->add('zipcode', TextType::class, ['label' => 'gestock.zipcode', ]) |
|
42 | 42 | ->add('town', TextType::class, ['label' => 'gestock.town', 'attr' => [ |
43 | 43 | 'onBlur' => 'this.value=this.value.toUpperCase();', |
44 | 44 | 'onFocus' => 'this.value=this.value.toUpperCase();', |
45 | - 'onKeyup' => 'this.value=this.value.toUpperCase();',]]) |
|
45 | + 'onKeyup' => 'this.value=this.value.toUpperCase();', ]]) |
|
46 | 46 | ->add('phone', 'tel', ['default_region' => 'FR', 'format' => PhoneNumberFormat::NATIONAL, |
47 | - 'label' => 'gestock.phone',]) |
|
47 | + 'label' => 'gestock.phone', ]) |
|
48 | 48 | ->add('fax', 'tel', ['default_region' => 'FR', 'format' => PhoneNumberFormat::NATIONAL, |
49 | - 'label' => 'gestock.fax',]) |
|
50 | - ->add('mail', EmailType::class, ['trim' => true, 'label' => 'gestock.mail',]) |
|
51 | - ->add('contact', TextType::class, ['label' => 'gestock.contact',]) |
|
49 | + 'label' => 'gestock.fax', ]) |
|
50 | + ->add('mail', EmailType::class, ['trim' => true, 'label' => 'gestock.mail', ]) |
|
51 | + ->add('contact', TextType::class, ['label' => 'gestock.contact', ]) |
|
52 | 52 | ->add('gsm', 'tel', ['default_region' => 'FR', 'format' => PhoneNumberFormat::NATIONAL, |
53 | 53 | 'label' => 'gestock.gsm']); |
54 | 54 | } |
@@ -40,40 +40,40 @@ discard block |
||
40 | 40 | public function buildForm(FormBuilderInterface $builder, array $options) |
41 | 41 | { |
42 | 42 | $builder |
43 | - ->add('name', TextType::class, ['label' => 'gestock.title_item', 'attr' => ['class' => 'form-control',],]) |
|
43 | + ->add('name', TextType::class, ['label' => 'gestock.title_item', 'attr' => ['class' => 'form-control', ], ]) |
|
44 | 44 | ->add('packaging', NumberType::class, ['scale' => 3, 'grouping' => true, 'label' => 'settings.packaging', |
45 | - 'translation_domain' => 'gs_articles', 'attr' => ['class' => 'form-control',],]) |
|
45 | + 'translation_domain' => 'gs_articles', 'attr' => ['class' => 'form-control', ], ]) |
|
46 | 46 | ->add('price', MoneyType::class, ['scale' => 3, 'grouping' => true, 'currency' => 'EUR', |
47 | 47 | 'label' => 'settings.price', 'translation_domain' => 'gs_articles', |
48 | - 'attr' => ['class' => 'form-control',],]) |
|
48 | + 'attr' => ['class' => 'form-control', ], ]) |
|
49 | 49 | ->add('tva', EntityType::class, ['class' => 'AppBundle:Settings\Diverse\Tva', 'choice_label' => 'name', |
50 | 50 | 'multiple' => false, 'label' => 'gestock.settings.diverse.vat', |
51 | - 'attr' => ['class' => 'form-control',],]) |
|
52 | - ->add('quantity', HiddenType::class, ['data' => 0,]) |
|
51 | + 'attr' => ['class' => 'form-control', ], ]) |
|
52 | + ->add('quantity', HiddenType::class, ['data' => 0, ]) |
|
53 | 53 | ->add('minstock', NumberType::class, ['scale' => 3, 'grouping' => true, 'label' => 'settings.stock_alert', |
54 | - 'translation_domain' => 'gs_articles', 'attr' => ['class' => 'form-control',],]) |
|
55 | - ->add('active', HiddenType::class, ['data' => true,]) |
|
54 | + 'translation_domain' => 'gs_articles', 'attr' => ['class' => 'form-control', ], ]) |
|
55 | + ->add('active', HiddenType::class, ['data' => true, ]) |
|
56 | 56 | ->add('slug', HiddenType::class) |
57 | 57 | ->add('supplier', EntityType::class, ['class' => 'AppBundle:Settings\Supplier', |
58 | - 'query_builder' => function (EntityRepository $er) { |
|
58 | + 'query_builder' => function(EntityRepository $er) { |
|
59 | 59 | return $er->createQueryBuilder('s') |
60 | 60 | ->where('s.active = 1'); |
61 | 61 | }, 'choice_label' => 'name', 'multiple' => false, 'placeholder' => 'form.choice_supplier', |
62 | 62 | 'label' => 'title', 'translation_domain' => 'gs_suppliers', 'empty_data' => null, |
63 | - 'attr' => ['class' => 'form-control',],]) |
|
63 | + 'attr' => ['class' => 'form-control', ], ]) |
|
64 | 64 | ->add('unitStorage', EntityType::class, ['class' => 'AppBundle:Settings\Diverse\UnitStorage', |
65 | 65 | 'choice_label' => 'name', 'multiple' => false, 'label' => 'gestock.settings.diverse.unitstorage', |
66 | - 'attr' => ['class' => 'form-control',],]) |
|
66 | + 'attr' => ['class' => 'form-control', ], ]) |
|
67 | 67 | ->add('zoneStorages', EntityType::class, ['class' => 'AppBundle:Settings\Diverse\ZoneStorage', |
68 | 68 | 'choice_label' => 'name', 'multiple' => true, 'expanded' => true, |
69 | - 'label' => 'gestock.settings.diverse.zonestorage', 'attr' => ['class' => 'form-control',],]) |
|
69 | + 'label' => 'gestock.settings.diverse.zonestorage', 'attr' => ['class' => 'form-control', ], ]) |
|
70 | 70 | ->add('familyLog', EntityType::class, ['class' => 'AppBundle:Settings\Diverse\FamilyLog', |
71 | - 'query_builder' => function (EntityRepository $er) { |
|
71 | + 'query_builder' => function(EntityRepository $er) { |
|
72 | 72 | return $er->createQueryBuilder('f') |
73 | 73 | ->orderBy('f.path', 'ASC'); |
74 | 74 | }, 'choice_label' => 'indentedName', 'multiple' => false, |
75 | 75 | 'placeholder' => 'gestock.settings.diverse.choice_family', 'empty_data' => null, |
76 | - 'label' => 'gestock.settings.diverse.familylog', 'attr' => ['class' => 'form-control',],]) |
|
76 | + 'label' => 'gestock.settings.diverse.familylog', 'attr' => ['class' => 'form-control', ], ]) |
|
77 | 77 | ->addEventSubscriber(new AddSaveEditFieldSubscriber()) |
78 | 78 | ; |
79 | 79 | } |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | */ |
84 | 84 | public function configureOptions(OptionsResolver $resolver) |
85 | 85 | { |
86 | - $resolver->setDefaults(['data_class' => 'AppBundle\Entity\Settings\Article',]); |
|
86 | + $resolver->setDefaults(['data_class' => 'AppBundle\Entity\Settings\Article', ]); |
|
87 | 87 | } |
88 | 88 | |
89 | 89 | /** |
@@ -37,14 +37,14 @@ |
||
37 | 37 | { |
38 | 38 | $builder->addEventListener( |
39 | 39 | FormEvents::PRE_SET_DATA, |
40 | - function (FormEvent $event) { |
|
40 | + function(FormEvent $event) { |
|
41 | 41 | $form = $event->getForm(); |
42 | 42 | $articles = $event->getData(); |
43 | 43 | |
44 | 44 | $formOptions = ['class' => 'AppBundle:Settings\Supplier', 'query_builder' => |
45 | - function (EntityRepository $er) use ($articles) { |
|
45 | + function(EntityRepository $er) use ($articles) { |
|
46 | 46 | return $er->getSupplierForReassign($articles[0]->getSupplier()); |
47 | - }, 'multiple' => false, 'empty_data' => null,]; |
|
47 | + }, 'multiple' => false, 'empty_data' => null, ]; |
|
48 | 48 | foreach ($articles as $article) { |
49 | 49 | $form->add('supplier-'.$article->getId(), EntityType::class, $formOptions); |
50 | 50 | } |
@@ -37,13 +37,13 @@ |
||
37 | 37 | public function buildForm(FormBuilderInterface $builder, array $options) |
38 | 38 | { |
39 | 39 | $builder |
40 | - ->add('name', TextType::class, ['label' => 'gestock.settings.diverse.family',]) |
|
40 | + ->add('name', TextType::class, ['label' => 'gestock.settings.diverse.family', ]) |
|
41 | 41 | ->add( |
42 | 42 | 'parent', |
43 | 43 | EntityType::class, |
44 | 44 | array( |
45 | 45 | 'class' => 'AppBundle:Settings\Diverse\FamilyLog', |
46 | - 'query_builder' => function (EntityRepository $er) { |
|
46 | + 'query_builder' => function(EntityRepository $er) { |
|
47 | 47 | return $er->createQueryBuilder('f') |
48 | 48 | ->orderBy('f.path', 'ASC'); |
49 | 49 | }, |
@@ -39,17 +39,17 @@ discard block |
||
39 | 39 | public function buildForm(FormBuilderInterface $builder, array $options) |
40 | 40 | { |
41 | 41 | $builder |
42 | - ->add('name', TextType::class, ['label' => 'gestock.name', 'attr' => ['class' => 'half'],]) |
|
42 | + ->add('name', TextType::class, ['label' => 'gestock.name', 'attr' => ['class' => 'half'], ]) |
|
43 | 43 | ->add('unitStorage', EntityType::class, ['class' => 'AppBundle:Settings\Diverse\UnitStorage', |
44 | 44 | 'choice_label' => 'name', 'multiple' => false, 'label' => 'gestock.settings.diverse.unitstorage', |
45 | - 'attr' => ['class' => 'half',],]) |
|
46 | - ->add('active', CheckboxType::class, ['required' => false, 'label' => 'gestock.actif',]) |
|
47 | - ->add('multiple', CheckboxType::class, ['required' => false, 'label' => 'gestock.multiple',]) |
|
45 | + 'attr' => ['class' => 'half', ], ]) |
|
46 | + ->add('active', CheckboxType::class, ['required' => false, 'label' => 'gestock.actif', ]) |
|
47 | + ->add('multiple', CheckboxType::class, ['required' => false, 'label' => 'gestock.multiple', ]) |
|
48 | 48 | ->add('articles', EntityType::class, ['class' => 'AppBundle:Settings\Article', |
49 | - 'query_builder' => function (EntityRepository $er) { |
|
49 | + 'query_builder' => function(EntityRepository $er) { |
|
50 | 50 | return $er->createQueryBuilder('a')->orderBy('a.name', 'ASC'); |
51 | 51 | }, 'choice_label' => 'name', 'multiple' => true, 'expanded' => true, 'label' => 'title', |
52 | - 'translation_domain' => 'gs_articles',]) |
|
52 | + 'translation_domain' => 'gs_articles', ]) |
|
53 | 53 | ->addEventSubscriber(new AddSaveEditFieldSubscriber()) |
54 | 54 | ; |
55 | 55 | } |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | public function configureOptions(OptionsResolver $resolver) |
61 | 61 | { |
62 | 62 | $resolver->setDefaults( |
63 | - ['data_class' => 'AppBundle\Entity\Settings\Diverse\Material',] |
|
63 | + ['data_class' => 'AppBundle\Entity\Settings\Diverse\Material', ] |
|
64 | 64 | ); |
65 | 65 | } |
66 | 66 |