src/Form/Type/JoinUsType.php line 8

Open in your IDE?
  1. <?php
  2. namespace App\Form\Type;
  3. use Symfony\Component\Form\FormBuilderInterface;
  4. use Symfony\Component\Form\Extension\Core\Type as FormType;
  5. class JoinUsType extends ContactType
  6. {
  7. /** {@inheritdoc} */
  8. public function buildForm(FormBuilderInterface $oBuilder, array $aOptions)
  9. {
  10. parent::buildForm($oBuilder, $aOptions);
  11. $oBuilder
  12. ->remove('reference')
  13. ->add('name', FormType\TextType::class, array(
  14. 'attr' => array(
  15. 'placeholder' => 'Nom, prénom',
  16. ),
  17. 'label' => false,
  18. ))
  19. ->add('localization', FormType\TextType::class, array(
  20. 'attr' => array('placeholder' => 'Localisation'),
  21. 'label' => false,
  22. ))
  23. ;
  24. }
  25. }