[Koha-patches] [PATCH] Bug 9640 - Replace YUI button on record matching rules page with Bootstrap

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


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

To test, view the matching rules administration page and confirm that
buttons look correct and work correctly.
---
 .../prog/en/modules/admin/matching-rules.tt        |   18 +++---------------
 1 file changed, 3 insertions(+), 15 deletions(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/matching-rules.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/matching-rules.tt
index 2bd8aaf..99b8e6a 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/matching-rules.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/matching-rules.tt
@@ -544,21 +544,9 @@ function CheckRuleForm(f) {
 
 [% IF ( display_list ) %]
 
-<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("newrule");
-	}	//]]>
-	</script>
-	<ul class="toolbar">
-    <li><a id="newrule" href="[% script_name %]?op=add_matching_rule">New record matching rule</a></li>
-</ul></div>
+<div id="toolbar" class="btn-toolbar">
+    <a class="btn btn-small" id="newrule" href="[% script_name %]?op=add_matching_rule"><i class="icon-plus"></i> New record matching rule</a>
+</div>
 
 <h2>Record matching rules</h2>
 [% IF ( added_matching_rule ) %]
-- 
1.7.9.5


More information about the Koha-patches mailing list