Allow error_css_class and required_css_class to be set universally through settings file
I frequently want to render fields individually and add an error class conditionally on every field in my form that has an error (so the fields will turn red due to my stylesheets).
I am considering implementing the following features to resolve this issue:
- A setting that when enabled adds
error_css_classto the class attribute of every erroneous field rendered via
- A setting that allows a default value for the error class when rendering a field via
error_css_classis not set on the form (setting called
- The same as 1 but with
- The same as 2 but with
I'd appreciate any thoughts on whether this might be a useful feature for widget_tweaks and if this seems like a wise approach to this problem.