neilime / zf2-twb-bundle

Zend Framework module for easy integration of Twitter Bootstrap
http://neilime.github.io/zf2-twb-bundle/
MIT License
143 stars 94 forks source link

Column size class applied inconsistently among horizontal and inline layout in forms #193

Open netbrothers-tr opened 7 years ago

netbrothers-tr commented 7 years ago

It seems to me that the column-size option is applied wrongly in forms with horizontal layout. Here's an example.

<!-- With options ['column-size' => 'md-4', 'twb-layout' => 'inline'] -->

<div class="form-group col-md-4">
    <label class="sr-only">Start</label>
    <input name="start" class="form-control" value="" type="text">
</div>

<!-- With options ['column-size' => 'md-4', 'twb-layout' => 'horizontal'] -->

<div class="form-group ">
    <label class="control-label">Start</label>
    <div class=" col-md-4">
        <input name="start" class="form-control" value="" type="text">
    </div>
</div>

I think it should be added to the first div and the wrapper div around the input can be omitted.