Bug 9646 - Replace YUI button on the printers administration page with Bootstrap origin/new/bug_9646
authorOwen Leonard <oleonard@myacpl.org>
Sun, 3 Feb 2013 13:43:16 +0000 (08:43 -0500)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Mon, 18 Feb 2013 14:11:25 +0000 (09:11 -0500)
This patch converts the toolbar on the printers administration page to
Bootstrap, replacing YUI button code with Bootstrap markup.

To test, view the printers administration page and confirm that the "New
printer" button looks correct and works correctly.

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Comment: Works well. No errors.
Off-topic: How do you access this page? I can't find a link
(tested using .../cgi-bin/koha/admin/printers.pl)

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Works well, no problems found.
Accessed printers page manually: /cgi-bin/koha/admin/printers.pl
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/printers.tt

index 7dfb80b..6edc88f 100644 (file)
        <form action="[% script_name %]" method="post">
                        <input type="hidden" name="op" value="delete_confirmed" />
                        <input type="hidden" name="searchfield" value="[% searchfield %]" />
-                       <input type="submit" value="Delete this Printer" />
+                       <input type="submit" value="Delete this printer" />
                        </form> <form action="[% script_name %]" method="post">
                                <input type="submit" value="Do not Delete" />
                        </form>
 
 [% IF ( else ) %]
 
-<div id="toolbar">
-       <script type="text/javascript">
-       //<![CDATA[
-       // prepare DOM for YUI Toolbar
-        $(document).ready(function() {
-           new YAHOO.widget.Button("newprinter");
-        });
-       //]]>
-       </script>
-       <ul class="toolbar">
-    <li><a id="newprinter" href="/cgi-bin/koha/admin/printers.pl?op=add_form">New printer</a></li>
-</ul></div>
+<div id="toolbar" class="btn-toolbar">
+    <a class="btn btn-small" id="newprinter" href="/cgi-bin/koha/admin/printers.pl?op=add_form"><i class="icon-plus"></i> New printer</a>
+</div>
 
 <h2>Printers</h2>
        [% IF ( searchfield ) %]