1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
| $builder
->add('numeroLeads', TextType::class)
->add('dateCreate', DateTimeType::class, array(
// render as a single text box
'widget' => 'single_text',
'html5' => false,
'format' => 'dd/MM/yyyy',
))
->add('statutId', StatutLeadsType::class)
->add('apporteurId', ApporteurType::class)
->add('contacts', CollectionType::class, array(
'entry_type' => ClientType::class,
'allow_add' => true,
'allow_delete' => true,
'prototype' => true,
'by_reference' => false,
'attr' => array(
'class' => 'contacts-list',
),
)
)
/*->add('commentaires', CollectionType::class, array(
'entry_type' => CommentaireLeadsType::class,
'allow_add' => true,
'allow_delete' => true
)
)*/
; |
Partager