django-floppyforms icon indicating copy to clipboard operation
django-floppyforms copied to clipboard

Changing default widget class attribute for all widgets

Open artscoop opened this issue 12 years ago • 1 comments

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...

artscoop avatar Sep 04 '13 17:09 artscoop

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.

ljean avatar Jul 06 '17 10:07 ljean