<?php

namespace AppBundle\Form\Security;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\PasswordType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;

class LoginForm extends AbstractType
{
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
            ->add('_username', null, [
                'label' => false,
                'attr' => [ 'class' => 'login ptb-8 plr-16', 'placeholder' => 'Adresse email' ]
            ])
            ->add('_password', PasswordType::class, [
                'label' => false,
                'attr' => [ 'class' => 'login ptb-8 plr-16', 'placeholder' => 'Mot de passe' ]
            ])
            ;
    }
}
