From dfae3fd99746ef3b26534a283afb2636d50540fc Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 31 Jan 2013 10:20:14 -0500 Subject: [PATCH] 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. Signed-off-by: Katrin Fischer Works nicely, on problems found. Signed-off-by: Jared Camins-Esakov --- .../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 b2bd544ab7..225e5dd92e 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 %]
-- 2.39.5