[Koha-patches] [PATCH] Bug 9688 - Replace YUI button on Authority MARC framework toolbar with Bootstrap
Owen Leonard
oleonard at myacpl.org
Thu Feb 21 21:48:33 CET 2013
This patch converts the toolbar used on the Authority MARC framework
toolbar to Bootstrap, replacing YUI button code with Bootstrap markup.
To test, view auth_tag_structure.pl for any authority framework. Confirm
that the 'New tag' button looks correct and works correctly.
---
.../prog/en/modules/admin/auth_tag_structure.tt | 18 +++---------------
1 file changed, 3 insertions(+), 15 deletions(-)
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_tag_structure.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_tag_structure.tt
index 0ef4e06..771174a 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_tag_structure.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_tag_structure.tt
@@ -196,21 +196,9 @@ return false;
[% IF ( else ) %]
-<div id="toolbar">
- <script type="text/javascript">
- //<![CDATA[
- // prepare DOM for YUI Toolbar
- $(document).ready(function() {
- yuiToolbar();
- });
- // YUI Toolbar Functions
- function yuiToolbar() {
- new YAHOO.widget.Button("newtag");
- } //]]>
- </script>
- <ul class="toolbar">
- <li><a id="newtag" href="/cgi-bin/koha/admin/auth_tag_structure.pl?op=add_form&authtypecode=[% authtypecode %]">New tag</a></li>
-</ul></div>
+<div id="toolbar" class="btn-toolbar">
+ <div class="btn-group"><a class="btn btn-small" id="newtag" href="/cgi-bin/koha/admin/auth_tag_structure.pl?op=add_form&authtypecode=[% authtypecode %]"><i class="icon-plus"></i> New tag</a></div>
+</div>
<h2>Select an authority framework</h2>
<form action="[% script_name %]" method="post">
--
1.7.9.5
More information about the Koha-patches
mailing list