Bug 9633 - Replace YUI button on the itemtypes administration page with Bootstrap
authorOwen Leonard <oleonard@myacpl.org>
Sun, 3 Feb 2013 00:16:21 +0000 (19:16 -0500)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Mon, 18 Feb 2013 13:53:11 +0000 (08:53 -0500)
This patch converts the toolbar on the itemtypes administration page to
Bootstrap, replacing YUI button code with Bootstrap markup.

Small unrelated edit: Button label text case correction.

To test, view the itemtypes administration page and confirm that the
'New item type' button looks correct and works correctly.

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Comment: Work and look 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/itemtypes.tt

index 30a3a85..7b6000c 100644 (file)
@@ -127,27 +127,9 @@ Item types administration
        <div id="yui-main">
        <div class="yui-b">
        
-[% 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("newitemtype");
-       }
-
-       //]]>
-       </script>
-       <ul class="toolbar">
-    <li><a id="newitemtype" href="/cgi-bin/koha/admin/itemtypes.pl?op=add_form">New item type</a></li>
-</ul></div>[% ELSE %]&nbsp;[% END %]
+[% IF ( else ) %]<div id="toolbar" class="btn-toolbar">
+    <a class="btn btn-small" id="newitemtype" href="/cgi-bin/koha/admin/itemtypes.pl?op=add_form"><i class="icon-plus"></i> New item type</a>
+</div>[% END %]
 
 [% IF ( add_form ) %]
   [% IF ( itemtype ) %]
@@ -254,7 +236,7 @@ Item types administration
     </fieldset>
 
     <fieldset class="action">
-      <input type="button" value="Save Changes" onclick="Check(this.form)" />
+      <input type="button" value="Save changes" onclick="Check(this.form)" />
          <a href="/cgi-bin/koha/admin/itemtypes.pl" class="cancel">Cancel</a>
     </fieldset>
 </form>