The submit line on a change form in the admin site is not rendered correctly if it only contains the Save button
|Reported by:||varikin||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
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.
Change History (6)
comment:1 Changed 5 years ago by varikin
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset