You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using deform 2 together with Bootstrap 3, to render some forms, and I want to create a Horizontal form as shown here, but all of the examples on the demo-site, is not examples of horizontal forms( with the label next to the input element).
I have tried using form_class="form-horizontal", and bootstrap_form_style="form-horizontal"(deform_bootstrap). When using the above, it does add the class form-horizontal, however I dont just want to add a class to the form element.
How do I add the rest of the class names to the rest of the form to make it a horizontal form as is on the the bootstrap site?
The text was updated successfully, but these errors were encountered:
You probably know this, but it's not just a matter of setting appropriate CSS classes, the HTML structure of horizontal forms is different that that of vertical forms (e.g. need an extra <div> around the text <input>.) This requires changes, I think, to (at least) the form.pt and mapping-item.pt templates.
I did some work on this in PR #187. The patches there are probably stale now.
I am using deform 2 together with Bootstrap 3, to render some forms, and I want to create a Horizontal form as shown here, but all of the examples on the demo-site, is not examples of horizontal forms( with the label next to the input element).
I have tried using
form_class="form-horizontal"
, andbootstrap_form_style="form-horizontal"
(deform_bootstrap). When using the above, it does add the classform-horizontal
, however I dont just want to add a class to the form element.How do I add the rest of the class names to the rest of the form to make it a horizontal form as is on the the bootstrap site?
The text was updated successfully, but these errors were encountered: