Opened 3 years ago
Last modified 3 years ago
#32905 closed New feature
Add `nonform` CSS class for non form errors in FormSets — at Initial Version
Reported by: | Ties Jan Hefting | Owned by: | nobody |
---|---|---|---|
Component: | Forms | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Forms add the nonfield
CSS class for non field errors in ErrorClass instances. This is documented in a section on rendering form error messages. Similarly, in FormSets I'd expect to see the nonform
CSS class added for non form errors. This would allow a custom ErrorClass to make a distinction in form field errors, non field errors (forms) and non form errors (FormSets) when rendering error messages. Therefore I'd suggest to add this nonform
CSS class and document it for developers to use.