From 1a2deae54e87332daaee6b888a9f273b1fc84bbf 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 Signed-off-by: Fridolin Somers --- .../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' %]