When you have many modules installed the page that lists them can become quite long so you end up scrolling all the way down to save changes such as disabling or enabling a moduile.

It would be nice to have the save button scrolling on the side or in the top menu where it would stay there for easy access no matter where on the page you are. Similar to how the admin menu stays in place.

I could also see this being useful in different areas such as article editing for very long articles. If you are just making a minor change to some text at the top of an article you have to go through some, frustrating and RSI inducing, scrolling right to the bottom to save any changes.

Now I'm sure some clever theme developers could hack this together but being an option in core, that works with all themes, would drastically improve usability.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

DaveNotik’s picture

+1. And/or perhaps there's a module (or just a block snippet) that one can add to the Admin menu for saving/submitting whatever form is open?

--D

mirba’s picture

++1 I totally agree. same for the block page.

omaster’s picture

I believe this would be a great feature for all submit/save buttons on all pages. You always have to click them. So maybe a Action bar would be a good way to go.

omaster’s picture

I have done a very quick patch that creates what I think we should be trying to achieve. Obviously it needs a little more work but this should be a start.

omaster’s picture

Assigned: omaster » Unassigned
Status: Needs work » Active
FileSize
752 bytes

Did some cleaning up to only include the areas I thought were relevant instead of "all" buttons that are created by forms.

--edit I prefer patch 4 more now. patch 5 cleans up too much. Wish to find a better way to clean up bit.

omaster’s picture

Assigned: Unassigned » omaster
Status: Active » Needs work

I figure this is not soo active so I take some lead on it.

omaster’s picture

Assigned: Unassigned » omaster
Status: Active » Needs work
FileSize
850 bytes

Ok now I am much happier with this cleanup. but there is still more to be done. Some people checking and saying what there is would always help. :)

omaster’s picture

Status: Needs work » Needs review
FileSize
1.39 KB

I am pretty happy with this new patch. Think it is ready for testing and then just patching for that testing.

richardj’s picture

Status: Needs review » Needs work
FileSize
15.82 KB

Your selectors are not yet correct, it also applies the style to underlying elements (see attached screenshot).

Also when applying the patch there is the following error:

<stdin>:9: trailing whitespace.
 
warning: 1 line adds whitespace errors.
omaster’s picture

Can you give me some more information about what environment you are using. I don't see this. I don't get a search button on that page. It has autocomplete for me. and this is on Mac OSX with GC, FF and Safari and IE, GC and FF on windows.

I will check the whitespace issue out now.

richardj’s picture

I checked it with the latest Chrome on Mac OSX, with overlay enabled, so it was an overlay over the front page (which shows a search box by default in the first sidebar).

omaster’s picture

Status: Needs work » Needs review
FileSize
1.33 KB

ahhh ok yes I know why now then. :)

Patch added that should fix both these issues.

richardj’s picture

Status: Needs review » Needs work

This is also not the right way to go I think, now you are manually selecting elements that might be influenced by your first selector to give them a relative position again. This will not hold up and by doing it this way you have to add new selectors to the list once we find out that the are influenced by your selector.

So the right way to go I think is: Only target the submit buttons that are part of the main form and might or might not be rendered in an overlay when the submit button is down the fold (so when you are not able to see it when you load the page or when you are scrolling).

That will need some more work because we need to build in more logic, we might have to introduce some javascript to tell 'where' on the page we are. Also we have to think about the other forms we might influence and whether or not this way is still usable. (take for instance the new node edit initiative or custom modules).

It might be better to build this kind of logic into a module because it touches so much more than only showing the form-actions at the bottom of the page.

omaster’s picture

Yeah well I think there is a lot more functionality it needs to have anyway. Like there are people who would like the buttons up the top instead as well. So looking at that. And also how to handle mobile devices. This is a start though that shows that some simple css can achieve it.

You are probably right on the separate module front for now. which means then that maybe a D8 version of http://drupal.org/project/page_actions is the necessary move with the aforementioned improvements. In which case it would be smart to grab all similar requests for D8 and combine them in one area and work on them.

omaster’s picture

However maybe we should be looking at it more in this task which means there is a way to push it into the d8 core.

http://drupal.org/node/1510550

Which is a sub task of this one

http://drupal.org/node/1510532

richardj’s picture

I agree with you that the basics of this issue could be achieved with only a few lines of css, so in that way: good work! I also agree that we should look at the bigger picture right now and getting UX / UI people involved in the main tasks of form element (save buttons in this case) placement. So i think the best way to go is join forces with the people already thinking about this in the tasks you mentioned in #15.

lauriii’s picture

Component: theme system » Seven theme
Issue summary: View changes
Bojhan’s picture

Status: Needs work » Closed (won't fix)

This is general bad practice now, considering mobile useage.