slywalker / cakephp-plugin-boost_cake

Bootstrap Plugin for CakePHP
http://slywalker.github.io/cakephp-plugin-boost_cake/
278 stars 93 forks source link

Label in horizontal form right #68

Closed Zwaen91 closed 1 year ago

Zwaen91 commented 9 years ago

When I add the text for the label like in your example below the classes are not applied to the label any more.

<?php echo $this->Form->create('BoostCake', array( 'inputDefaults' => array( 'div' => 'form-group', 'label' => array( 'class' => 'col col-md-3 control-label' ), 'wrapInput' => 'col col-md-9', 'class' => 'form-control' ), 'class' => 'well form-horizontal' )); ?> <?php echo $this->Form->input('remember', array( 'wrapInput' => 'col col-md-9 col-md-offset-3', 'label' => 'Remember me', 'class' => false )); ?>

houseoftech commented 9 years ago

You can supply both so the class is not overwritten:

'label' => array(
     'text' => 'Remember Me',
     'class' => 'col col-md-3 control-label'
)

Or, @slywalker here is a fix: https://github.com/houseoftech/cakephp-plugin-boost_cake/commit/1f31c320fb4cb0cef6c90a6caec10e8768b49d7d

olivMertens commented 1 year ago

9 years !! after :)