From 0b9ec8d7cf91d5a069d73c23fca709923d8cadea Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 20 Feb 2013 12:58:46 -0500 Subject: [PATCH] [SIGNED-OFF] Bug 9674 - Replace YUI buttons and menu on acquisitions pages with Bootstrap This patch converts the toolbar on acquisitions pages to Bootstrap, replacing YUI button code with Bootstrap markup. To test, view acquisitions pages and confirm that buttons look correct and work correctly: - acqui-home.pl (Acquisitions home page) - booksellers.pl (Acquisitions -> Vendor search) - supplier.pl (Acquisitions -> Vendor search -> Vendor) - aqcontract.pl (Acquisitions -> Vendor search -> Vendor -> Contracts) - uncertainprice.pl (Aquisitions -> Vendor search -> Vendor -> Uncertain prices) View these pages for vendors with and without orders. Signed-off-by: Bernardo Gonzalez Kriegel Comment: Buttons works. No errors. Tested vendors with and without orders (delete button in last case) --- .../prog/en/includes/acquisitions-toolbar.inc | 66 +++++++++----------- 1 file changed, 31 insertions(+), 35 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/acquisitions-toolbar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/acquisitions-toolbar.inc index c0654fb..5308b5a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/acquisitions-toolbar.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/acquisitions-toolbar.inc @@ -1,44 +1,40 @@ -
+
+ [% IF ( booksellerid ) %] +
+ New + + +
+ [% IF ( CAN_user_acquisition_vendors_manage ) %] + [% UNLESS ( basketcount OR subscriptioncount ) %] -
  • Delete vendor
  • + [% END %] [% END %] - [% IF ( CAN_user_acquisition_order_receive && basketcount ) %]
  • Receive shipments
  • [% END %] + [% IF ( CAN_user_acquisition_order_receive && basketcount ) %] + + [% END %] [% ELSE %] -
  • New vendor
  • + [% END %] -
    -- 1.7.9.5