Opened 16 years ago
Closed 16 years ago
#9074 closed (fixed)
The submit line on a change form in the admin site is not rendered correctly if it only contains the Save button
Reported by: | John Shimek | Owned by: | nobody |
---|---|---|---|
Component: | Contrib apps | Version: | dev |
Severity: | Keywords: | newforms-admin | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I have a custom template/view/form in the admin site which only has the save button in the submit row. The gray box that should contain all the buttons is collapses with the Save button rendered over/below the gray box. See the attached image for a screenshot. I am also attaching my template, view, and form to ease reproducing.
The issue seems to stem from "float: right" set to the button with "input[type=submit].default" in admin/media/globals.css. Removing the "float: right" though makes the save button appear as the left most button with multiple buttons on the submit row and the delete button is messed up. To fix that, I also updated the submit_line.html template to have the Save button last in the list.
Attachments (4)
Change History (6)
by , 16 years ago
Attachment: | save button.png added |
---|
comment:1 by , 16 years ago
I found that the popups only have a save button that is rendered correctly. This is because the submit-row div has "overflow: auto;" set for the style in the html. Doing the same in my template solves my issue, but I am wondering if that should then be added to the globals.css instead of set in the html.
comment:2 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Screenshot of issue