<?php
namespace App\Form\Front;
use App\Entity\FormQuotationServices;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\HiddenType;
use Symfony\Component\Form\Extension\Core\Type\TextareaType;
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
class FormQuotationServicesType extends AbstractType
{
public function buildForm(FormBuilderInterface $builder, array $options): void
{
$builder
->add('typePerson', HiddenType::class)
->add('documentType', HiddenType::class)
->add('documentNumber', HiddenType::class)
->add('company', TextType::class)
->add('name', TextType::class)
->add('lastname', TextType::class)
->add('phone', TextType::class)
->add('email', TextType::class)
->add('service', HiddenType::class)
->add('establishment', HiddenType::class)
->add('date', TextType::class)
->add('message', TextareaType::class)
->add('utmSource', HiddenType::class)
->add('utmMedium', HiddenType::class)
->add('utmCampaign', HiddenType::class)
->add('utmContent', HiddenType::class)
->add('utmTerm', HiddenType::class)
->add('gclid', HiddenType::class);
}
public function configureOptions(OptionsResolver $resolver): void
{
$resolver->setDefaults([
'data_class' => FormQuotationServices::class,
]);
}
}