From 40216ca0750dbb2ebebd40b2507340f86a86d0b2 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 22 Aug 2012 08:48:38 -0400 Subject: [PATCH] Bug 8664 - Add floating toolbar with save button to system preferences editor Content-Type: text/plain; charset="utf-8" This patch adds a copy of the "save" button in a toolbar at the top of the system preferences editor. The toolbar becomes fixed at the top of the page when you scroll down, exactly like the toolbar on addbiblio.pl. Because multiple save buttons might appear when the system prefs page displays search results, the toolbar does not appear in this case. To test, open the system preferences editor and change a setting. Try saving both with the button in the toolbar and the button at the top of the page. Test scrolling to confirm that the toolbar "sticks" to the top of the page when you scroll down. --- .../intranet-tmpl/prog/en/css/preferences.css | 4 ++++ .../prog/en/modules/admin/preferences.tt | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/css/preferences.css b/koha-tmpl/intranet-tmpl/prog/en/css/preferences.css index 262fe11..c58e9a5 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/css/preferences.css +++ b/koha-tmpl/intranet-tmpl/prog/en/css/preferences.css @@ -69,4 +69,8 @@ h3.collapsed { #yui-main { margin-bottom:2em; +} +#toolbar.floating { + box-shadow: 0 3px 2px 0 rgba(0, 0, 0, 0.5); + border-radius: 0; } \ No newline at end of file diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tt index 9591003..823a825 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tt @@ -6,8 +6,12 @@ +