From 6f245106f0c42a37472eca690d3988d921d623cd Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 23 Mar 2023 16:45:00 +0000 Subject: [PATCH] Bug 33333: Use template wrapper for tabs: SQL reports This patch updates the saved SQL reports template so that it uses the new WRAPPER directive to build tab markup. To test, apply the patch and go to Reports -> Use saved. In order to properly test the patch you should have multiple reports defined with multiple categories ("Accounts", "Acquisitions", "Catalog", etc.). Clicking each tab should filter the table of reports correctly. After navigating away from the page and back to it, your selected tab should be remembered. Signed-off-by: Alexandra Speer Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 6884b73a71cafbe82f4ee8ba19d978781ff72bf7) Signed-off-by: Jacob O'Mara --- .../prog/en/includes/html_helpers.inc | 2 +- .../modules/reports/guided_reports_start.tt | 37 ++++++++++--------- 2 files changed, 20 insertions(+), 19 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers.inc index 634bf8f196..7ef68d20d8 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers.inc @@ -388,7 +388,7 @@ [% ELSE %]
  • [% END %] - + [% content | $raw %]
  • diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt index 5ed2398a00..98715ca958 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt @@ -243,20 +243,17 @@

    [% END %] -
    - + [% END # /WRAPPER tabs_nav %] + + [% WRAPPER tab_panels %] + [% WRAPPER tab_panel tabname="reports" bt_active= 1 %] -
    -