From de434c2398aa0629e6a9119cebb353ba517a20b9 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 6 Apr 2018 12:53:35 +0000 Subject: [PATCH] Bug 20534: Floating toolbar when editing vendors This patch moves the Save and Cancel controls on the vendor edit form into a toolbar which sticks to the top of the screen as you scroll. To test, apply the patch and Acquisitions -> New vendor. - Confirm that as you scroll down the page, the toolbar with the Save and Cancel buttons sticks to the top of the screen. - Test that the Save and Cancel buttons both work correctly. - Perform the same tests when editing an existing vendor. Signed-off-by: Maksim Sen Signed-off-by: Katrin Fischer Signed-off-by: Nick Clemens --- .../intranet-tmpl/prog/en/modules/acqui/supplier.tt | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt index 10cc063006..3066c1cd09 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt @@ -115,6 +115,15 @@ [% UNLESS ( enter ) %][% INCLUDE 'acquisitions-toolbar.inc' %][% END %] [% IF ( enter ) %]
+
+ + [% IF ( booksellerid ) %] + + [% ELSE %] + + [% END %] Cancel +
+
Company details @@ -242,6 +251,7 @@
[% IF ( booksellerid ) %] [% ELSE %] [% END %]Cancel
+
[% ELSE %]

[% name | html %]

@@ -351,9 +361,9 @@ - [% MACRO jsinclude BLOCK %] [% Asset.js("js/acquisitions-menu.js") | $raw %] + [% Asset.js("lib/jquery/plugins/jquery.fixFloat.js") | $raw %] [% INCLUDE 'datatables.inc' %] [% END %] -- 2.39.5