From 2b218ccaca159e83344eb089a3f48bd488f4612d Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 29 Mar 2022 16:59:47 +0000 Subject: [PATCH] Bug 30400: Convert invoices page tabs to Bootstrap This patch updates the invoices page to use Bootstrap tabs instead of jQueryUI. To test, apply the patch and go to Acquisitions. - Locate a vendor which has multiple invoices associated with it. - View the vendor details, and click the "Invoices" link in the sidebar. - Check that the "Open invoices" and "Closed invoices" tabs work correctly. Signed-off-by: Lucas Gass Signed-off-by: Katrin Fischer --- .../prog/en/modules/acqui/invoices.tt | 47 ++++++++++--------- 1 file changed, 24 insertions(+), 23 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoices.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoices.tt index f57a9ca11a..8be858e6be 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoices.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoices.tt @@ -130,29 +130,31 @@ [% END # /IF CAN_user_acquisition_merge_invoices %] [% END # /BLOCK invoices_table %] -
-
    -
  • Open invoices ([% openedinvoices.size || 0 | html %])
  • -
  • Closed invoices ([% closedinvoices.size || 0 | html %])
  • +
    + -
    - [% IF openedinvoices %] - [% INCLUDE invoices_table invoices = openedinvoices %] - [% ELSE %] -
    -

    Your search returned no open invoices.

    -
    - [% END %] -
    -
    - [% IF closedinvoices %] - [% INCLUDE invoices_table invoices = closedinvoices closed = 1 %] - [% ELSE %] -
    -

    Your search returned no closed invoices.

    -
    - [% END %] -
    +
    +
    + [% IF openedinvoices %] + [% INCLUDE invoices_table invoices = openedinvoices %] + [% ELSE %] +
    +

    Your search returned no open invoices.

    +
    + [% END %] +
    +
    + [% IF closedinvoices %] + [% INCLUDE invoices_table invoices = closedinvoices closed = 1 %] + [% ELSE %] +
    +

    Your search returned no closed invoices.

    +
    + [% END %] +
    +
    @@ -397,7 +399,6 @@ [% INCLUDE 'calendar.inc' %]