[Koha-patches] [PATCH] Bug 9623 - Replace YUI button on authority types administration page with Bootstrap

Owen Leonard oleonard at myacpl.org
Fri Feb 15 17:26:52 CET 2013


This patch converts the toolbar on the authority types administration
page to to Bootstrap, replacing YUI button code with Bootstrap markup.

To test, view the authority types administration page and confirm that
the "New authority type" button looks correct and works correctly.
---
 .../prog/en/modules/admin/authtypes.tt             |   10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authtypes.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authtypes.tt
index c87434e..dab813e 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authtypes.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authtypes.tt
@@ -42,9 +42,6 @@ function Check(f) {
 	}
 }
 
-$(document).ready(function() {
-    new YAHOO.widget.Button("authtype");
-});
 //]]>
 </script>
 </head>
@@ -124,10 +121,9 @@ $(document).ready(function() {
 
 [% IF ( else ) %]
 
-<div id="toolbar">
-	<ul class="toolbar">
-    <li><a id="authtype" href="[% script_name %]?op=add_form">New authority type</a></li>
-</ul></div>
+<div id="toolbar" class="btn-toolbar">
+    <a id="authtype" class="btn btn-small" href="[% script_name %]?op=add_form"><i class="icon-plus"></i> New authority type</a>
+</div>
 
 <h1>Authority types</h1>
 <p>Define authority types, then authority MARC structure in the same way you define itemtypes and biblio MARC tag structure. Authority values are managed through plugins</p>
-- 
1.7.9.5


More information about the Koha-patches mailing list