From ee6f5ba313a3e6eb7f63d284709555f13ae2ea2f Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 31 Jan 2013 10:20:14 -0500 Subject: [PATCH] [SIGNED-OFF] Bug 9621 - Replace YUI menu on lists pages with Bootstrap This patch converts the toolbar include file used by lists pages to Bootstrap, replacing YUI button and menu code with Bootstrap markup. To test, view any page in virtualshelves/ which uses virtualshelves-toolbar.inc (shelves.pl). Buttons and menus should look correct and work correctly when viewing own lists, others' lists, etc. Revised: corrected bug number and title Signed-off-by: Bernardo Gonzalez Kriegel Comment: Work as described. No error. Looks very good. As well as Bug 9616 the result is 10px downward from the original. --- .../prog/en/includes/virtualshelves-toolbar.inc | 141 ++++++++------------ 1 file changed, 54 insertions(+), 87 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/virtualshelves-toolbar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/virtualshelves-toolbar.inc index b2bd544..225e5dd 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/virtualshelves-toolbar.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/virtualshelves-toolbar.inc @@ -1,98 +1,65 @@ -
- - new YAHOO.widget.Button({ - type: "menu", - label: _("Edit"), - name: "editmenubutton", - menu: editmenu, - container: "editlistc" - }); +
+ -[% END %] - downloadlistButton = new YAHOO.widget.Button({ - id: "downloadlist", - type: "button", - label: _("Download list"), - container: "downloadlistc", - onclick: {fn:downloadList} - }); - sendlistButton = new YAHOO.widget.Button({ - id: "sendlist", - type: "button", - label: _("Send list"), - container: "sendlistc", - onclick: {fn:sendList} - }); - printlistButton = new YAHOO.widget.Button({ - id: "printbiblio", - type: "button", - label: _("Print list"), - container: "printlistc", - onclick: {fn:function(){print();}} - });[% END %] - } + [% IF ( viewshelf ) %] + [% IF ( manageshelf ) %] +
+ + +
+ [% END %] - //]]> - - - +
+ + +
+ + + [% END %]
-- 1.7.9.5