Author: MichaƂ Marcinkowski (michal.marcinkowski@lakion.com)
Inheritance: extends Sylius\Bundle\ResourceBundle\Form\Type\AbstractResourceType
Example #1
0
 /**
  * {@inheritdoc}
  */
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     parent::buildForm($builder, $options);
     $builder->add('firstName', 'text', ['label' => 'sylius.form.customer.first_name', 'required' => false])->add('lastName', 'text', ['label' => 'sylius.form.customer.last_name', 'required' => false])->add('groups', 'sylius_group_choice', ['label' => 'sylius.form.customer.groups', 'multiple' => true, 'required' => false]);
 }
Example #2
0
 /**
  * {@inheritdoc}
  */
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     parent::buildForm($builder, $options);
     $builder->add('firstName', TextType::class, ['label' => 'sylius.form.customer.first_name', 'required' => false])->add('lastName', TextType::class, ['label' => 'sylius.form.customer.last_name', 'required' => false])->add('group', 'sylius_customer_group_choice', ['label' => 'sylius.form.customer.group', 'required' => false]);
 }