[Koha-patches] [PATCH] Bug 9622 - Replace YUI button on MARC fameworks page with Bootstrap

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


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

To test, view the MARC frameworks administration page and confirm that
the "New framework" button looks correct and works correctly.
---
 .../prog/en/modules/admin/biblio_framework.tt      |   14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/biblio_framework.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/biblio_framework.tt
index b87ec20..1458d10 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/biblio_framework.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/biblio_framework.tt
@@ -43,9 +43,6 @@ function Check(f) {
     return true;
 }
 
-$(document).ready(function() {
-    new YAHOO.widget.Button("newframework");
-});
 //]]>
 </script>
 <script type="text/javascript">
@@ -138,11 +135,12 @@ $(document).ready(function() {
   <div id="bd">
     <div id="yui-main">
       <div class="yui-b">
-	
-[% IF ( else ) %]<div id="toolbar">
-	<ul class="toolbar">
-    <li><a id="newframework" href="/cgi-bin/koha/admin/biblio_framework.pl?op=add_form">New framework</a></li>
-</ul></div>[% END %]
+
+[% IF ( else ) %]
+<div id="toolbar" class="btn-toolbar">
+    <a class="btn btn-small" id="newframework" href="/cgi-bin/koha/admin/biblio_framework.pl?op=add_form"><i class="icon-plus"></i> New framework</a>
+</div>
+[% END %]
 
 [% IF ( add_form ) %]
     <h1>[% IF ( frameworkcode ) %]Modify framework text[% ELSE %]Add framework[% END %]</h1>
-- 
1.7.9.5


More information about the Koha-patches mailing list