From c10ba632e14957ac18ee2e881248a6183b558a68 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 31 Jan 2013 09:39:38 -0500 Subject: [PATCH] [SIGNED-OFF] Bug 9627 - Replace YUI buttons and menus on serials pages with Bootstrap This patch converts the toolbar include file used by Serials pages to Bootstrap, replacing YUI button and menu code with Bootstrap markup. To test, view any page in serials/ which uses serials-toolbar.inc (subscription-detail.pl, serials-home.pl, etc). Buttons and menus should look correct and work correctly, including: - New subscription - Edit subscription - Edit as new (duplicate) - Delete subscription - Renew - Receive - Close Signed-off-by: Bernardo Gonzalez Kriegel Comment: Work as described. No errors. For me it would be better to use icon-remove, because icon-remove-circle shows a little cross, think that a bigger cross is more clear. --- .../prog/en/includes/serials-toolbar.inc | 108 ++++++++------------ 1 file changed, 40 insertions(+), 68 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/serials-toolbar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/serials-toolbar.inc index 0e7497d..efc32dd 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/serials-toolbar.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/serials-toolbar.inc @@ -1,4 +1,4 @@ -
-
    +
    + [% IF ( CAN_user_serials_create_subscription ) %] [% IF ( biblionumber_for_new_subscription ) %] -
  • New subscription
  • + [% ELSE %] -
  • New subscription
  • + [% END %] [% END %] @@ -83,37 +49,43 @@ onclick: {fn:function(){popup([% subscriptionid %])}} [% IF ( CAN_user_serials_edit_subscription || CAN_user_serials_create_subscription || CAN_user_serials_delete_subscription ) %] [% UNLESS ( cannotedit ) %] -
  • Edit
  • +
    + + +
    [% END %] [% END %] - [% IF ( CAN_user_serials_create_subscription ) %] -
  • Duplicate
  • - [% END %] - [% UNLESS ( cannotedit ) %] [% UNLESS closed %] [% IF ( CAN_user_serials_renew_subscription ) %] -
  • Renew
  • + [% END %] [% END %] [% IF ( CAN_user_serials_receive_serials ) %] [% UNLESS closed %] -
  • Receive
  • + [% END %] [% END %] [% IF CAN_user_serials_edit_subscription %] [% IF closed %] -
  • Reopen
  • + [% ELSE %] -
  • Close
  • + [% END %] [% END %] - [% IF ( CAN_user_serials_delete_subscription ) %] -
  • Delete
  • - [% END %] [% END %] [% END %] [% END %] -
-- 1.7.9.5