From a333884bb815c3d82f060147bf813acd5c0a1ef0 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 --- koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) 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 4e01547..a4fdd44 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt @@ -113,6 +113,14 @@ [% UNLESS ( enter ) %][% INCLUDE 'acquisitions-toolbar.inc' %][% END %] [% IF ( enter ) %]
+
+ + [% IF ( booksellerid ) %] + + [% ELSE %] + + [% END %] Cancel +
@@ -239,9 +247,6 @@
  • -
    [% IF ( booksellerid ) %] - [% ELSE %] - [% END %]Cancel
    [% ELSE %] @@ -352,6 +357,7 @@ [% MACRO jsinclude BLOCK %] + [% INCLUDE 'datatables.inc' %] [% END %] -- 2.7.4