Permalink
Browse files

Added the attributes for the addresses collection in form type

  • Loading branch information...
jmgtan authored and iampersistent committed Jan 23, 2013
1 parent ff3a3a6 commit 2c86306bf45761e98112467d8692fd335e9cc63d
Showing with 8 additions and 1 deletion.
  1. +8 −1 lib/Vespolina/Form/Partner/PartnerType.php
@@ -20,7 +20,14 @@ public function buildForm(FormBuilderInterface $builder, array $options)
->add('organisationDetails', new OrganisationDetailsType())
->add('primaryContact', new ContactType())
->add('addresses', 'collection', array(
- 'type' => new AddressType()
+ 'type' => new AddressType(),
+ 'allow_add' => true,
+ 'allow_delete' => true,
+ 'by_reference' => false,
+ 'options' => array(
+ 'required' => false,
+ 'attr' => array('class' => 'license-box')
+ )
))
;
}

0 comments on commit 2c86306

Please sign in to comment.