src/Form/ForgetPassType.php line 10

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\FormBuilderInterface;
  6. use Symfony\Component\OptionsResolver\OptionsResolver;
  7. class ForgetPassType extends AbstractType
  8. {
  9.     public function buildForm(FormBuilderInterface $builder, array $options): void
  10.     {
  11.         $builder
  12.             ->add('email'EmailType::class, [
  13.                 'label'=>'E-mail',
  14.                 'attr'=>[
  15.                     'class'=>'input input-bordered bg-white w-full text-sm md:text-base bg-gray-50 border border-gray-300 text-gray-900 sm:text-sm rounded-lg focus:ring-primary-600 focus:border-primary-600 block w-full p-2.5',
  16.                     'placeholder'=>'example@example.fr'
  17.                 ],
  18.                 'label_attr'=>[
  19.                     'class'=>'my-3'
  20.                 ]
  21.             ])
  22.         ;
  23.     }
  24.     public function configureOptions(OptionsResolver $resolver): void
  25.     {
  26.         $resolver->setDefaults([
  27.             // Configure your form options here
  28.         ]);
  29.     }
  30. }