Crisu83/yiistrap — pull request #226 by marcovtwout (2014-04-29 10:43:05+00:00)
Title: Add function to TbActiveForm to create custom active inputs (ie: widgets)

Short example usage:

```php
customInputControlGroup(
$this->widget('CustomInputWidget', array(), true),
$model,
$attribute
) ?>
```

Full example usage:

```php
beginWidget('bootstrap.widgets.TbActiveForm', array(
'id'=>'contact-form',
)); ?>

textFieldControlGroup($model, 'name') ?>

textFieldControlGroup($model, 'email') ?>

customInputControlGroup(
$this->widget('CCaptcha', array(), true) . TbHtml::activeTextField($model, 'verifyCode'),
$model,
'verifyCode',
array('help' => 'Please enter the letters as they are shown in the image above.
Letters are not case-sensitive.')
); ?>

createformActions(array(
TbHtml::submitButton('Submit', array('color' => TbHtml::BUTTON_COLOR_PRIMARY)),
)) ?>

endWidget(); ?>
```