Opened 17 years ago
Last modified 3 years ago
#5899 new New feature
Allow admin fieldsets to be collapsible but not initially collapsed
Reported by: | Owned by: | ||
---|---|---|---|
Component: | contrib.admin | Version: | newforms-admin |
Severity: | Normal | Keywords: | admin fieldset collapsed collapsible nfa-someday |
Cc: | cmawebsite@…, olivier.dalang@… | Triage Stage: | Accepted |
Has patch: | yes | Needs documentation: | no |
Needs tests: | yes | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | yes |
Description
I want to use the collapse feature of the admin, but not have the field initially collapsed, so I made this little patch.
It adds a "collapsible" class that does just that. It also patches the documentation.
Attachments (4)
Change History (17)
by , 17 years ago
Attachment: | django.collapsible_fieldset.diff added |
---|
comment:1 by , 17 years ago
Patch needs improvement: | set |
---|---|
Triage Stage: | Unreviewed → Accepted |
Version: | SVN → newforms-admin |
by , 17 years ago
Attachment: | django_newforms-admin.collapsible_fieldset.diff added |
---|
comment:4 by , 14 years ago
Severity: | → Normal |
---|---|
Type: | → New feature |
comment:5 by , 14 years ago
Easy pickings: | unset |
---|---|
Patch needs improvement: | set |
django_newforms-admin.collapsible_fieldset.diff fails to apply cleanly on to trunk
comment:6 by , 14 years ago
UI/UX: | set |
---|
comment:7 by , 14 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
by , 14 years ago
comment:8 by , 14 years ago
Patch needs improvement: | unset |
---|
I implemented the suggested behaviour to the current trunk, see 5899.diff.
by , 13 years ago
Attachment: | 5899.collapsible-fieldsets.diff added |
---|
comment:9 by , 13 years ago
The patch looks great, I've just updated it to current trunk. I'd be tempted to RFC this patch even if it doesn't contain tests. There are no plans on implementing a framework for testing the admin *interface* (as opposed to regular javascript code) clearly spelled out yet, even in #16193.
comment:10 by , 12 years ago
Needs tests: | set |
---|
Now that we have selenium based interface testing this patch could be expanded with that.
comment:11 by , 10 years ago
Cc: | added |
---|
Why not simply have all fieldsets collapsable by default and only have them initially collapsed when the "collapse" class is present?
comment:12 by , 8 years ago
Cc: | added |
---|
comment:13 by , 3 years ago
Owner: | removed |
---|---|
Status: | assigned → new |
I am +1 on this. However, the trunk admin is longer being supported. Ionut, can you provide a patch against the newforms-admin branch?