Skip to content
This repository has been archived by the owner on Feb 26, 2018. It is now read-only.

create horizontal form with more then one element #100

Open
lfarkas opened this issue May 3, 2016 · 3 comments
Open

create horizontal form with more then one element #100

lfarkas opened this issue May 3, 2016 · 3 comments

Comments

@lfarkas
Copy link

lfarkas commented May 3, 2016

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?

screenshot from 2016-05-03 08-19-22

@lfarkas
Copy link
Author

lfarkas commented May 3, 2016

AFAIS currently it's not possible to put more (label,input) pair into one formGroup or use formgroup without horizontal builder.

@adamwathan
Copy link
Owner

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.

@lfarkas
Copy link
Author

lfarkas commented May 3, 2016

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants