Set class name to "required" for labels which corresponds to required fields
| Reported by: |
ramzes@… |
Owned by: |
Adrian Holovaty |
|
Component:
|
Forms
|
Version:
|
dev
|
|
Severity:
|
|
Keywords:
|
|
|
Cc:
|
|
Triage Stage:
|
Accepted
|
|
Has patch:
|
yes
|
Needs documentation:
|
yes
|
|
Needs tests:
|
yes
|
Patch needs improvement:
|
yes
|
|
Easy pickings:
|
no
|
UI/UX:
|
no
|
I need some way to mark required field in html code returned by form.as_...() . The proposal is to set class name as "required" for labels of that fields.
Change History
(5)
| Needs documentation: |
set
|
| Patch needs improvement: |
set
|
| Triage Stage: |
Unreviewed → Accepted
|
| Summary: |
[patch] Set class name to "required" for labels which corresponds to required fields → Set class name to "required" for labels which corresponds to required fields
|
| Needs tests: |
set
|
| Resolution: |
→ duplicate
|
| Status: |
new → closed
|
I'd actually feel happier about having this passed automatically to the widgets, regardless of whether one of the
asmethods is being used; that way it works everywhere. Also, documentation which mentions that this will happen would be nice :)