From c27cc81e6336826e4851105140d9927dc39fcca2 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 --- koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 10cc063..51dbf91 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 %]

@@ -354,6 +364,7 @@ [% MACRO jsinclude BLOCK %] [% Asset.js("js/acquisitions-menu.js") | $raw %] + [% Asset.js("lib/jquery/plugins/jquery.fixFloat.js") | $raw %] [% INCLUDE 'datatables.inc' %] [% END %] -- 2.1.4