[Koha-patches] [PATCH] Bug 9643 - Replace YUI button on the road types administration page with Bootstrap

Owen Leonard oleonard at myacpl.org
Fri Feb 15 21:15:38 CET 2013


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

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

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/roadtype.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/roadtype.tt
index 1c3ff5e..ad491fd 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/roadtype.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/roadtype.tt
@@ -108,27 +108,9 @@
 
 [% 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("addroad");
-	}
-
-	//]]>
-	</script>
-	<ul class="toolbar">
-    <li><a id="addroad" href="/cgi-bin/koha/admin/roadtype.pl?op=add_form">New road type</a></li>
-</ul></div>
+<div id="toolbar" class="btn-toolbar">
+    <a class="btn btn-small" id="addroad" href="/cgi-bin/koha/admin/roadtype.pl?op=add_form"><i class="icon-plus"></i> New road type</a>
+</div>
 
 	<h2>Road type</h2>
 	[% IF ( searchfield ) %]
-- 
1.7.9.5


More information about the Koha-patches mailing list