From 626af764207faca4c3bbc10ee79b6860ac4c7feb Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 17 Jan 2023 19:28:04 +0000 Subject: [PATCH] Bug 32658: Use template wrapper in order from staged file template This patch implements the template WRAPPER system (see Bug 32571) for building tabs on the page for adding to a basket from a staged file. To test you need an active vendor, at least one basket for that vendor, and a staged MARC file. Apply the patch and go to Acquisitions -> Vendor -> Basket -> Add to basket -> From a staged file. - Click "Add to orders" on one of your staged files. - On the "Add orders from..." page you should see three tabs, the first one active. - Tabs should look correct and work correctly. Signed-off-by: David Nind --- .../prog/en/modules/acqui/addorderiso2709.tt | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt index 6151926baf..483ff459ec 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt @@ -69,15 +69,15 @@ ([% file_name | html %] staged on [% upload_timestamp | $KohaDates with_hours => 1 %])
-
- + [% WRAPPER tabs id= "tabs" %] + [% WRAPPER tabs_nav %] + [% WRAPPER tab_item tabname= "records_to_import" active= 1 %] Select to import [% END %] + [% WRAPPER tab_item tabname= "items_info" %] Item information [% END %] + [% WRAPPER tab_item tabname= "accounting_details" %] Default accounting details [% END %] + [% END %] -
-
+ [% WRAPPER tab_panels %] + [% WRAPPER tab_panel tabname= "records_to_import" active= 1 %]
Select all @@ -366,9 +366,9 @@
-
+ [% END # /#records_to_import %] -
+ [% WRAPPER tab_panel tabname= "items_info" %]

Item information

Import all the checked items in the basket with the following parameters:

@@ -423,9 +423,9 @@
[% END # /IF items %] -
+ [% END # /#items_info %] -
+ [% WRAPPER tab_panel tabname= "accounting_details" %]

Import all the checked items in the basket with the following accounting details (used only if no information is filled for the item):

Accounting details @@ -489,9 +489,9 @@
-
- - + [% END # /#accounting_details %] + [% END #/WRAPPER tab_panels %] + [% END # /WRAPPER tabs %]
Cancel
-- 2.30.2