Bug 9688 - Replace YUI button on Authority MARC framework toolbar with Bootstrap
authorOwen Leonard <oleonard@myacpl.org>
Thu, 21 Feb 2013 20:46:48 +0000 (15:46 -0500)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Thu, 7 Mar 2013 15:18:17 +0000 (10:18 -0500)
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.

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Comment: Works and looks correctly. No errors.

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Works nicely, no problems found.
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_tag_structure.tt

index 0ef4e06..771174a 100644 (file)
@@ -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&amp;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&amp;authtypecode=[% authtypecode %]"><i class="icon-plus"></i> New tag</a></div>
+</div>
 
 <h2>Select an authority framework</h2>
 <form action="[% script_name %]" method="post">