src/Form/CustomerSupportcontactType.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Form;
  3. use Symfony\Component\Form\AbstractType;
  4. use Symfony\Component\Form\Extension\Core\Type\EmailType;
  5. use Symfony\Component\Form\Extension\Core\Type\TextareaType;
  6. use Symfony\Component\Form\Extension\Core\Type\SubmitType;
  7. use Symfony\Component\Form\FormBuilderInterface;
  8. use Symfony\Component\OptionsResolver\OptionsResolver;
  9. class CustomerSupportcontactType extends AbstractType
  10. {
  11.     public function buildForm(FormBuilderInterface $builder, array $options)
  12.     {
  13.         $builder
  14.             ->add('telephoneContact'null, ['attr' => ['class' => 'form-control']])
  15.             ->add('firstName'null, ['label'=>'First Name','attr' => ['class' => 'form-control']])
  16.             ->add('lastName'null, ['label'=>'Last Name','attr' => ['class' => 'form-control']])
  17.             ->add('mailContact'EmailType::Class, ['attr' => ['class' => 'form-control']])
  18.             ->add('motifDeLaDemande'TextareaType::class, ['attr' => ['class' => 'form-control']])
  19.             ->add('envoyerVotreMessage'SubmitType::class, ['attr' => ['class' => 'btn btn-primary']]);
  20.     }
  21.     public function configureOptions(OptionsResolver $resolver)
  22.     {
  23.         $resolver->setDefaults(
  24.             [
  25.             // Configure your form options here
  26.             ]
  27.         );
  28.     }
  29. }