From e808d2b596675f2969c6e42b835761bf00ea575c Mon Sep 17 00:00:00 2001 From: phiamo Date: Fri, 29 May 2015 20:54:46 +0200 Subject: [PATCH] adapted latest pr --- Form/Type/ExampleChoiceFormType.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Form/Type/ExampleChoiceFormType.php b/Form/Type/ExampleChoiceFormType.php index 5135680..3dafe90 100644 --- a/Form/Type/ExampleChoiceFormType.php +++ b/Form/Type/ExampleChoiceFormType.php @@ -43,14 +43,13 @@ public function buildForm(FormBuilderInterface $builder, array $options) )) ->add('Simple_Checkboxes', 'checkbox', array( 'label' => 'Simple checkbox', - 'help_block' => 'This is the inline help', 'help_block' => 'Checkbox widgets can have help block too' )) ->add('Radio_By_Buttons', 'choice', array( 'widget_type' => 'inline-btn', 'expanded' => true, 'choices' => array('1' => 'one', '2' => 'two'), - 'attr' => array( + 'label_attr' => array( 'class' => 'btn-default', ), 'help_block' => 'Radio by buttons (btn)', @@ -60,7 +59,7 @@ public function buildForm(FormBuilderInterface $builder, array $options) 'expanded' => true, 'multiple' => true, 'choices' => array('1' => 'one', '2' => 'two'), - 'attr' => array( + 'label_attr' => array( 'class' => 'btn-default', ), 'help_block' => 'Checkboxes by buttons (inline-btn)',