Issue 205 in php-form-builder-class: Update to Bootstrap 3

75 views
Skip to first unread message

php-form-bu...@googlecode.com

unread,
Aug 30, 2013, 7:03:23 AM8/30/13
to php-form-builder...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 205 by sietzeke...@gmail.com: Update to Bootstrap 3
http://code.google.com/p/php-form-builder-class/issues/detail?id=205

Are there any plans to update from Bootstrap 2 to 3, cause they made quite
some changes and they say Bootstrap 3 is now final.

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

php-form-bu...@googlecode.com

unread,
Sep 4, 2013, 12:50:09 PM9/4/13
to php-form-builder...@googlegroups.com

php-form-bu...@googlecode.com

unread,
Dec 30, 2013, 3:16:47 AM12/30/13
to php-form-builder...@googlegroups.com

Comment #2 on issue 205 by JelleGFe...@gmail.com: Update to Bootstrap 3
http://code.google.com/p/php-form-builder-class/issues/detail?id=205

Bootstrap has now moved from 3 to 3.0.2. If there any outlook on getting
bootstrap 3.* integrated?

php-form-bu...@googlecode.com

unread,
Jan 11, 2014, 9:22:10 PM1/11/14
to php-form-builder...@googlegroups.com

Comment #3 on issue 205 by arf...@gmail.com: Update to Bootstrap 3
http://code.google.com/p/php-form-builder-class/issues/detail?id=205

I'm wondering the same thing myself.
I've used PFBC for a multitude of things now, but looking at the stagnated
development, I'm kind of wondering if it was a bad idea.

php-form-bu...@googlecode.com

unread,
May 6, 2014, 5:09:17 AM5/6/14
to php-form-builder...@googlegroups.com

Comment #4 on issue 205 by deadduck...@gmail.com: Update to Bootstrap 3
http://code.google.com/p/php-form-builder-class/issues/detail?id=205

It doesn't look that hard to do, actually with very few simple fixes.
Here's a start:

SideBySide.php change line 33 to:

echo '<div class="form-group">', $this->renderLabel($element), '<div
class="col-sm-10">', $element->render(),
$this->renderDescriptions($element), '</div></div>';

Then line 44 to:

echo '<label class="col-sm-2 control-label" for="',
$element->getAttribute("id"), '">';

Then any of the elements that you want to add the "form-control" class to
(which will make them 100% width), you need to add:

"class" => "form-control"

to the protected $_attributes array near the top of the file (make sure to
add a comma before it if the array already has something in it).

For example, edit these files:

Date.php, DateTime.php, DateTimeLocal.php, Email.php, jQueryUIDate.php,
Month.php, Number.php, Password.php, Phone.php, Search.php, Select.php,
Textarea.php, Textbox.php, Time.php, Url.php, Week.php
Reply all
Reply to author
Forward
0 new messages