bootforms
bootforms copied to clipboard
create horizontal form with more then one element
is it possible to create a real horizontal form with bootforms like the attached one where more then one input element is in a row?
AFAIS currently it's not possible to put more (label,input) pair into one formGroup or use formgroup without horizontal builder.
Not possible using Bootforms because this would require a bunch of fancy column markup and Bootforms isn't expecting you to do that. Would have to think about the API a bit, in the mean time I'd recommend just writing the markup by hand.
actually don't need. the only difference is that i put more element into one from-group eg:
<div class="form-group">
<label for="aircraft-registration" class="control-label col-sm-2 ">Registration</label>
<div class="col-sm-3 " title="Aircraft Registration">
<input type="text" name="registration" id="aircraft-registration" class="form-control" value="">
</div>
<label for="aircraft-tail" class="control-label col-sm-1 ">Tail</label>
<div class="col-sm-2 " title="Tail Sign">
<input type="text" name="tail" id="aircraft-tail" class="form-control" value="">
</div>
</div>
currently FormGroup don't has any special usage it's just contains one title and one control and one help box. but it can be possible that FormGroup contain a list/array of Elements (like Label also just an element) than this view can be easily added. of course this is the most common usage but this wouldn't change too much. the only difference that the HelpBlock. but if HelpBlock can be attached to any element the this problem can also be solved.