src/Form/Front/FormClaimType.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Form\Front;
  3. use App\Entity\FormClaim;
  4. use Symfony\Component\Form\AbstractType;
  5. use Symfony\Component\Form\Extension\Core\Type\HiddenType;
  6. use Symfony\Component\Form\Extension\Core\Type\TextareaType;
  7. use Symfony\Component\Form\Extension\Core\Type\TextType;
  8. use Symfony\Component\Form\FormBuilderInterface;
  9. use Symfony\Component\OptionsResolver\OptionsResolver;
  10. class FormClaimType extends AbstractType
  11. {
  12.     public function buildForm(FormBuilderInterface $builder, array $options): void
  13.     {
  14.         $builder
  15.             ->add('establishment'HiddenType::class)
  16.             ->add('name'TextType::class)
  17.             ->add('lastname'TextType::class)
  18.             ->add('email'TextType::class)
  19.             ->add('phone'TextType::class)
  20.             ->add('department'HiddenType::class)
  21.             ->add('province'HiddenType::class)
  22.             ->add('district'HiddenType::class)
  23.             ->add('address'TextType::class)
  24.             ->add('good'HiddenType::class)
  25.             ->add('orderNumber'TextType::class)
  26.             ->add('amount'TextType::class)
  27.             ->add('description'TextareaType::class)
  28.             ->add('type'HiddenType::class)
  29.             ->add('detail'TextareaType::class)
  30.             ->add('demand'TextareaType::class)
  31.             // ->add('actions', TextareaType::class)
  32.             ->add('utmSource'HiddenType::class)
  33.             ->add('utmMedium'HiddenType::class)
  34.             ->add('utmCampaign'HiddenType::class)
  35.             ->add('utmContent'HiddenType::class)
  36.             ->add('utmTerm'HiddenType::class)
  37.             ->add('gclid'HiddenType::class);
  38.     }
  39.     public function configureOptions(OptionsResolver $resolver): void
  40.     {
  41.         $resolver->setDefaults([
  42.             'data_class' => FormClaim::class,
  43.         ]);
  44.     }
  45. }