Added the possibility to render append/prepend without a span wrap #446

Merged
merged 1 commit into from Apr 8, 2013

Conversation

Projects
None yet
2 participants
Contributor

Frostmaind commented Apr 8, 2013

Can be used like this:

Example 1

echo $form->textFieldRow($model, 'url', array(
    'appendOptions' => array('isRaw' => true), 
    'append' => $this->widget('bootstrap.widgets.TbButton', array('label' => 'Make url'), true),
));

Example 2

echo $form->textFieldRow($model, 'url', array(
    'appendOptions' => array('isRaw' => true), 
    'append' => $this->renderPartial('parts/_btn_makeurl',null,true)
));

contents of _btn_makeurl.php


<?php $this->widget('bootstrap.widgets.TbButton', array('label' => 'Make url')); ?>

booster-add2

More examples from twitter bootsrap
booster-add

hijarian added a commit that referenced this pull request Apr 8, 2013

Merge pull request #446 from Frostmaind/UnwrapPrependAppend
Added the possibility to render append/prepend without a span wrap

@hijarian hijarian merged commit 29372d0 into clevertech:1.0.7-wip Apr 8, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment