Don Felipe, on 27 September 2012 - 08:42 AM, said:
Something like this... (untested but should work)
<div class="input-append">
<?php echo $form->textFieldRow($model, 'attribute', array('class'=>'input-medium')); ?>
<?php $this->widget('bootstrap.widgets.TbButton', array('buttonType'=>'button', 'label'=>'Go')); ?>
</div>Thanks DF. Believe me I have tried the simpler approaches, including the one you gave. The problem is that textFieldRow writes the error message stuff after the input, so the button is appended after that. This leaves a space between the input box and the button. I have got it to work correctly on an uneditableRow, like this:
<div class="input-append">
<?php echo $form->uneditableRow($model, 'memberName',array('class'=>'span5')); ?>
<?php $this->widget('bootstrap.widgets.TbButton', array(
'icon'=>'icon-search',
'type'=>'info',
'url'=>'#lookupModal',
'htmlOptions'=>array(
'rel'=>'popover',
'data-toggle'=>'modal'),
)); ?>
</div>
But I really need it to work with text inputs.

Help












