Emagister / zend-form-decorators-bootstrap

Zend_Form decorators for Twitter's Bootstrap UI
http://emagister.github.com/zend-form-decorators-bootstrap
168 stars 79 forks source link

Radio buttons & MultiCheckboxes have <br /> between them. #39

Closed lrobert closed 12 years ago

lrobert commented 12 years ago

Take the following example:

<?php
// Radio Buttons
$this->addElement('radio', 'myRadio', array (
        'label' => 'Radio Buttons', 
        'multiOptions' => array (
                1 => 'One Fish', 
                2 => 'Two Fish', 
                3 => 'Red Fish', 
                4 => 'Blue Fish' 
        ) 
));

// Radio Buttons
$this->addElement('multiCheckbox', 'myCheckboxes', array (
        'label' => 'Checkboxes',
        'multiOptions' => array (
                1 => 'One Fish',
                2 => 'Two Fish',
                3 => 'Red Fish',
                4 => 'Blue Fish'
        )
));

It produces the following result

<label class=" radio" for="myRadio-1"><input type="radio" name="myRadio" id="myRadio-1" value="1" class="">One Fish</label>
<br />

It seems the view helper is getting the separator '
' when it should be getting '' by default.