src/Form/Type/ResetPassword1Type.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Form\Type;
  3. use Symfony\Component\Form\AbstractType;
  4. use Symfony\Component\Form\FormBuilderInterface;
  5. use Symfony\Component\OptionsResolver\OptionsResolver;
  6. use Symfony\Component\Form\Extension\Core\Type\EmailType;
  7. use Symfony\Component\Form\Extension\Core\Type\RepeatedType;
  8. use Symfony\Component\Form\Extension\Core\Type\PasswordType;
  9. use Symfony\Component\Form\Extension\Core\Type\SubmitType;
  10. class ResetPassword1Type extends AbstractType
  11. {
  12.     public function buildForm(FormBuilderInterface $builder, array $options)
  13.     {
  14.         $builder
  15.             ->add('email'EmailType::class, [
  16.                 'attr' => ['class' => 'form-control'],
  17.                 'row_attr' => ['class' => 'form-group'],
  18.                 'label' => 'Email',
  19.             ])
  20.             ->add('valider'SubmitType::class, [
  21.                 'attr' => ['class' => 'btn btn-block btn-primary mt-4'],
  22.                 'label' => 'Valider' ])
  23.         ;
  24.     }
  25.     public function configureOptions(OptionsResolver $resolver)
  26.     {
  27.         $resolver->setDefaults([
  28.             // Configure your form options here
  29.         ]);
  30.     }
  31. }
  32. ?>