daily pastebin goal
15%
SHARE
TWEET

Untitled

a guest Dec 11th, 2018 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public function buildForm(FormBuilderInterface $builder, array $options)
  2. {
  3.     $builder
  4.         ->add('titulo', null, array(
  5.             'label' => 'Titulo del anuncio',
  6.             'attr' => array('class' => 'form-control')
  7.         ))
  8.         ->add('descripcion', null, array(
  9.             'label' => 'DescripciĆ³n',
  10.             'attr' => array('class' => 'form-control')
  11.         ))
  12.         ->add('fechaAnuncio', null, array(
  13.             'label' => 'Fecha Anuncio: ',
  14.             'widget' => 'single_text',
  15.             'attr' => array('class' => 'form-control'),
  16.  
  17.         ))
  18.         ->add('categoria', EntityType::class, array(
  19.             'class' => Categoria::class,
  20.             'label' => 'Categorias',
  21.  
  22.             'multiple' => true,
  23.             'attr' => array('class' => 'form-control')
  24.         ))
  25.         ->add('imagenAnuncio', FileType::class, array(
  26.             'mapped' => false,
  27.             'label' => 'Imagenes',
  28.             'attr' => array('class' => 'form-control-file', 'multiple' => 'multiple', 'data-show-upload' => 'true', 'data-show-caption' => 'true'),
  29.             'required' => false
  30.  
  31.         ))
  32.         ->add('precio', null, array(
  33.             'label' => 'Precio',
  34.             'attr' => array('class' => 'form-control')
  35.         ));
  36. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top