Opened 15 years ago
Closed 10 years ago
#11776 closed New feature (fixed)
HTML class for non-field errors
Reported by: | Owned by: | Nick | |
---|---|---|---|
Component: | Forms | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | yes |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
In most of my applications I like field errors and non-field errors to display slightly differently. In general I need field errors to line up with the field or use an icon to indicate which field they correspond to (such as an arrow icon). Non-field errors of course can't have an arrow icon and don't line up with fields (ie. need different margins).
At the moment it's difficult to arrange this without extra markup, because it's usually hard to write a CSS selector that selects only field xor non-field errors.
It would be really helpful if the output was, say, <ul class="errorlist nonfielderrorlist">
when rendering form.non_field_errors
.
Change History (9)
comment:1 by , 15 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:2 by , 14 years ago
Severity: | → Normal |
---|---|
Type: | → New feature |
comment:3 by , 13 years ago
UI/UX: | unset |
---|
comment:5 by , 11 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:6 by , 11 years ago
Initial attempt at https://github.com/NickPresta/django/pull/1
comment:7 by , 11 years ago
Has patch: | set |
---|---|
Needs documentation: | set |
Version: | 1.1 → master |
Patch needs documentation as noted on the PR.
comment:9 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Change UI/UX from NULL to False.