<?php
namespace App\Form\Front;
use App\Entity\FormClaim;
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 FormClaimType extends AbstractType
{
public function buildForm(FormBuilderInterface $builder, array $options): void
{
$builder
->add('establishment', HiddenType::class)
->add('name', TextType::class)
->add('lastname', TextType::class)
->add('email', TextType::class)
->add('phone', TextType::class)
->add('department', HiddenType::class)
->add('province', HiddenType::class)
->add('district', HiddenType::class)
->add('address', TextType::class)
->add('good', HiddenType::class)
->add('orderNumber', TextType::class)
->add('amount', TextType::class)
->add('description', TextareaType::class)
->add('type', HiddenType::class)
->add('detail', TextareaType::class)
->add('demand', TextareaType::class)
// ->add('actions', 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' => FormClaim::class,
]);
}
}