Skip to content
This repository has been archived by the owner on Nov 12, 2021. It is now read-only.

Zend_Form_Element_Checkbox styled like any other elements #33

Open
ppavlovic opened this issue Oct 27, 2012 · 3 comments
Open

Zend_Form_Element_Checkbox styled like any other elements #33

ppavlovic opened this issue Oct 27, 2012 · 3 comments

Comments

@ppavlovic
Copy link

When using with form decorator with Zend_Form_Element_Checkbox

        $this->chkbox = new Zend_Form_Element_Checkbox('chkbox');
        $this->chkbox->setLabel('Check me!');

....

    \EasyBib_Form_Decorator::setFormDecorator(
                $this, \EasyBib_Form_Decorator::BOOTSTRAP, 'submit'
    );

I get following code:

    <div class="control-group"><label class="control-label optional" for="chkbox">Check me!</label>
    <div class="controls">
    <input type="hidden" value="0" name="chkbox"><input type="checkbox" value="1" id="chkbox" name="chkbox"></div></div>

Checkbox is rendered below label, not on the left of label like in Twitter Bootstrap.

I also have some weird issues with SubForms, but I can't reproduce it right now. :(

@mahfuz05
Copy link

please someone check this issue

@till
Copy link
Contributor

till commented Apr 18, 2013

@mahfuz05 do you mind attaching a test case and doing a PR?

@mahfuz05
Copy link

ok i will do

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants