PHP Classes

Bootstrap3 Compatiblity

Recommend this page to a friend!

      PHP Forms Class with HTML Generator and JavaScript Validation  >  All threads  >  Bootstrap3 Compatiblity  >  (Un) Subscribe thread alerts  
Subject:Bootstrap3 Compatiblity
Summary:Are there plans to add bootstrap3 compatibility
Messages:2
Author:Mark Ty
Date:2015-05-12 13:45:53
 

  1. Bootstrap3 Compatiblity   Reply   Report abuse  
Picture of Mark Ty Mark Ty - 2015-05-12 13:45:53
Are there plans to make Forms and Generation Class more Bootstrap3 friendly?

I have been a long time user of this class, but lately have been having difficulty generating Bootstrap3 Compatible code. Especially with Checkboxes and Radio Buttons because the Input is inside the Label like so:

<div class="form-group">
<label class="checkbox-inline"><input type="checkbox">3</label>
</div>
<div class="form-group">
<label>Radio Buttons</label>
<div class="radio">
<label>
<input name="optionsRadios" id="optionsRadios1" value="option1" checked="" type="radio">Radio 1</label>

  2. Re: Bootstrap3 Compatiblity   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2015-05-12 20:26:02 - In reply to message 1 from Mark Ty
I see that you want to put an input inside a label, but the labels in your example do not have a FOR attribute. In that case, you can just put the label tag in your template instead of using AddLabelPart.

Just let me know if this is enough for your problem or your label tags really use the FOR attribute to relate them with the respective input.