Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added the attributes for the addresses collection in form type

  • Loading branch information...
commit 2c86306bf45761e98112467d8692fd335e9cc63d 1 parent ff3a3a6
jmgtan authored January 23, 2013 iampersistent committed March 16, 2013
9  lib/Vespolina/Form/Partner/PartnerType.php
@@ -20,7 +20,14 @@ public function buildForm(FormBuilderInterface $builder, array $options)
20 20
             ->add('organisationDetails', new OrganisationDetailsType())
21 21
             ->add('primaryContact', new ContactType())
22 22
             ->add('addresses', 'collection', array(
23  
-                'type' => new AddressType()
  23
+                'type' => new AddressType(),
  24
+                'allow_add' => true,
  25
+                'allow_delete' => true,
  26
+                'by_reference' => false,
  27
+                'options' => array(
  28
+                    'required' => false,
  29
+                    'attr' => array('class' => 'license-box')
  30
+                )
24 31
             ))
25 32
         ;
26 33
     }

0 notes on commit 2c86306

Please sign in to comment.
Something went wrong with that request. Please try again.