jrief / django-angular

Let AngularJS play well with Django
http://django-angular.awesto.com/
MIT License
1.23k stars 293 forks source link

Adding attribute to create horizontal form #182

Closed rpavila closed 8 years ago

rpavila commented 9 years ago

I modified the output of the form with the bootstrap's grid system

jrief commented 9 years ago

Could you please send me the HTML code you want to achieve. I presume you can do that with the current functionality. Furthermore, I won't merge this because it does not conform to PEP8.

rpavila commented 9 years ago

Hello Jacob, thanks for reply. I need create a form with the html output like this example. I thought could add an attribute in the Bootstrap3FormMixin class to achieve the html that I want. Excuse me for my poor English.

adrienbrunet commented 8 years ago

Such modifications are not needed. You can have an horizontal form adding class="horizontal-form" in your html form definition. You may need to add in your Form class: widget_css_classes = "col-md-10" and label_css_classes = "control-label col-xm-2 col-md-2"

@jrief, this raises other problems, I'm openning a new issue to state them but this PR can be closed.