Crisu83/yiistrap — pull request #171 by kazuo (2013-12-24 21:13:21+00:00)
Title: BS3 compatibility: Tweaks to form control width, input addons, pills, tabs, pagination, labels, and badges

Issue #153

For individual form elements such as text fields, text areas, select inputs, the corresponding method will wrap a div tag if a width size is applied.

For element widths that uses the "span" option will be converted to its "col-md-*" equivalent. For example, passing in `array('span' => 8)` would be the same as `array('md' => 8)`. In BS3, you can choose the type of width depending on the display such has `xs`, `md`, and `lg`. You can stack the column types in your `$htmlOptions` and it will apply those classes. For example: `array('xs' => 6, 'md' => 6)` will apply both `col-xs-6` and `col-md-6` classes to the element.

By the way, badge colors in BS3 are gone. I thought about re-adding them with an additional LESS/CSS, but decided to stay close to stock BS3 as much possible.

I modified `TbHtml::inputAddOn()` to properly parse the string from `TbHtml::buttonDropdown()` to fix the look of the appending/prepending of those types of buttons to input elements.

I marked a number of constants as "deprecated" for BS3. I didn't want to completely remove them in case you want to keep it there for backward compatibility (I changed the constant values to the BS3 equivalent if they have one).

This is still far from complete, but we'll get there :)