#13038 closed (fixed)
readonly_fields in an Admin changeform don't have their name added as a HTML class
Reported by: | Andy Baker | Owned by: | javimansilla |
---|---|---|---|
Component: | contrib.admin | Version: | 1.2-beta |
Severity: | Keywords: | admin changeform readonly_field pycamp2010 | |
Cc: | andy@… | Triage Stage: | Accepted |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
A normal field is wrapped by:
<div class="form-row fieldname">
Read-only fields are wrapped by:
<div class="form-row">
This limits the possibilities for CSS/javascript customization of admin forms.
Attachments (1)
Change History (7)
comment:1 by , 15 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:2 by , 15 years ago
Owner: | changed from | to
---|
by , 15 years ago
Attachment: | bug13038.patch added |
---|
comment:3 by , 15 years ago
Has patch: | set |
---|---|
Triage Stage: | Accepted → Ready for checkin |
Attached is the patch for this ticket.
Credits to javimansilla and fisadev for the original patch.
I have added tests and improved blank spaces in the right of css classes.
comment:4 by , 15 years ago
Keywords: | pycamp2010 added |
---|---|
Triage Stage: | Ready for checkin → Accepted |
comment:5 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Patch for adding css classes to read only fields.