Bug 9643 - Replace YUI button on the road types administration page with Bootstrap
authorOwen Leonard <oleonard@myacpl.org>
Sun, 3 Feb 2013 13:58:26 +0000 (08:58 -0500)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Mon, 18 Feb 2013 14:07:33 +0000 (09:07 -0500)
This patch converts the toolbar on the road types administration
page to to Bootstrap, replacing YUI button code with Bootstrap markup.

To test, view the road types administration page and confirm that
the "New road type" button looks correct and works correctly.

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Comment: Confirmed, button 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/roadtype.tt

index 1c3ff5e..ad491fd 100644 (file)
 
 [% 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("addroad");
-       }
-
-       //]]>
-       </script>
-       <ul class="toolbar">
-    <li><a id="addroad" href="/cgi-bin/koha/admin/roadtype.pl?op=add_form">New road type</a></li>
-</ul></div>
+<div id="toolbar" class="btn-toolbar">
+    <a class="btn btn-small" id="addroad" href="/cgi-bin/koha/admin/roadtype.pl?op=add_form"><i class="icon-plus"></i> New road type</a>
+</div>
 
        <h2>Road type</h2>
        [% IF ( searchfield ) %]