[Koha-patches] [PATCH] Bug 9629 - Replace YUI button on patron category administration page with Bootstrap

Owen Leonard oleonard at myacpl.org
Fri Feb 15 18:13:31 CET 2013


This patch converts the toolbar used by the patrons
administration to Bootstrap, replacing YUI button and menu code
with Bootstrap markup.

To test, view the patrons administration page and confirm that
the button looks correct and works correctly.
---
 .../prog/en/modules/admin/categorie.tt             |   24 +++-----------------
 1 file changed, 3 insertions(+), 21 deletions(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categorie.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categorie.tt
index 6c3114f..e7e00d4 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categorie.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categorie.tt
@@ -266,27 +266,9 @@ Confirm deletion of category [% categorycode |html %][% END %]</legend>
 
 [% 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("newcategory");
-	}
-
-	//]]>
-	</script>
-	<ul class="toolbar">
-    <li><a id="newcategory" href="/cgi-bin/koha/admin/categorie.pl?op=add_form">New category</a></li>
-</ul></div>
+<div id="toolbar" class="btn-toolbar">
+    <a class="btn btn-small" id="newcategory" href="/cgi-bin/koha/admin/categorie.pl?op=add_form"><i class="icon-plus"></i> New category</a>
+</div>
 
 <h2>Patron category administration</h2>
 [% IF ( searchfield ) %]
-- 
1.7.9.5


More information about the Koha-patches mailing list