src/Form/ResetPasswordRequestFormType.php line 11
<?php
namespace App\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\EmailType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Symfony\Component\Validator\Constraints\NotBlank;
class ResetPasswordRequestFormType extends AbstractType
{
public function buildForm(FormBuilderInterface $builder, array $options): void
{
$builder
->add('email', EmailType::class, [
'attr' => [
'autocomplete' => 'Votre email',
'placeholder' => "Renseignez votre email",
'class' => 'border border-gray-200 dark:border-gray-800 dark:text-gray-300 rounded-lg pl-4 dark:bg-foreground py-[15px] shadow-input hover:border hover:border-blue-200 focus:border-blue-200 focus:outline-none w-full mb-1',
],
'constraints' => [
new NotBlank([
'message' => 'Merci d\'entrer votre email',
]),
],
])
;
}
public function configureOptions(OptionsResolver $resolver): void
{
$resolver->setDefaults([]);
}
}