From edaec1311aa852173544373f93ae6ce2cfa9f223 Mon Sep 17 00:00:00 2001
From: Owen Leonard <oleonard@myacpl.org>
Date: Sun, 3 Feb 2013 15:21:21 -0500
Subject: [PATCH] [PASSED QA] Bug 9623 - Replace YUI button on authority types
 administration page with Bootstrap

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.

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>

Comment: Work as described. No errors.

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Works nicely, no problems found.
---
 .../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