Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In the pane settings modal overlay, the Save (submit) button is the very first form control in the form. The submit button should be after all of the form controls and instructions in tab order and source code order. CSS positioning could be used to keep the button in its current location.
Comment | File | Size | Author |
---|---|---|---|
#5 | 2280883-save-button-order-1.patch | 3.29 KB | dnmurray |
Comments
Comment #1
cboyden CreditAttribution: cboyden commentedComment #2
dnmurray CreditAttribution: dnmurray commentedWorking on this at the sprint.
Comment #3
dsnopek@dnmurray: Can you post the in-progress patch that you made at the sprint? Even if it's not finished and you plan to keep working on it, it'd be great to have it in the queue! :-)
Comment #4
dsnopekChanging to "Magic" because this is in panopoly_magic.
Comment #5
dnmurray CreditAttribution: dnmurray commentedThe attached patch fixes part of the problem, on some edit panes. Well, I'm not sure "fix" is appropriate, since I can't seem to be able to tab to the button at all. The patch moves the order of the button set to the end of the form. It also (tries) to wrap the left side of the pane in a div so it can be left-aligned in a fixed-width area. The buttons then naturally appear below the preview pane.
@dsnopek emacs stripped a bunch of whitespace from the files. I did a `git diff -b` to prevent that from appearing in the patch. Just an fyi for future submissions, as a way to prevent massive amounts of meaningless patch review.
This patch doesn't work for most of the "add" panes. The Content Settings fieldset is not added by the magic module. My next step was to go try and figure out how to trap the form after those fields were added. This patch needs a lot more work.
Comment #6
dsnopekThanks! :-)
Comment #7
mgiffordJust changing the status to get reviews.
Comment #8
arknoll CreditAttribution: arknoll commentedI am trying to figure out what the driver is to have these buttons at the top of the form. This seems to make it confusing for editors when there is a longer edit screen in the modal.
How about attempting to fix the position of the action buttons to the bottom of the modal? This would potentially require js.
Comment #9
dsnopekIt's so that we can float them right and have them appear in the right-hand column underneath the preview.