jazzband / django-floppyforms

Full control of form rendering in the templates.
http://django-floppyforms.readthedocs.org/
Other
841 stars 148 forks source link

Changing default widget class attribute for all widgets #81

Open artscoop opened 11 years ago

artscoop commented 11 years ago

Is there a way to change the default CSS class for widgets ? I am trying to use Bootstrap 3, and form widgets need a class form-control to be displayed properly. I can't seem to find a way to do it without writing lots of code...

ljean commented 7 years ago

For your information, I faced a similar issue and I managed to fix it with the following changes in my form base classes : https://github.com/ljean/coop_cms/commit/cb25fe6ad3e8cdac9c6ff7046812d3a6309c4b18

It's a bit "hacky" but it seems to work fine.