From 3391dcdf768e15216d9c2679cf0da89646ae33b9 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 31 Jan 2013 10:20:14 -0500 Subject: [PATCH] Bug 9420 - Work on Bootstrap for Koha: Lists toolbar Content-Type: text/plain; charset="utf-8" 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. http://bugs.koha-community.org/show_bug.cgi?id=9621 --- .../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