Skip to content

Commit

Permalink
adapted latest pr
Browse files Browse the repository at this point in the history
  • Loading branch information
phiamo committed May 29, 2015
1 parent 89c8acf commit e808d2b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Form/Type/ExampleChoiceFormType.php
Expand Up @@ -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)',
Expand All @@ -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)',
Expand Down

0 comments on commit e808d2b

Please sign in to comment.