Bug 2889: Added highlighting to smart-rules.tmpl
authorGarry Collum <gcollum@gmail.com>
Thu, 11 Jun 2009 00:23:52 +0000 (20:23 -0400)
committerGalen Charlton <galen.charlton@liblime.com>
Thu, 11 Jun 2009 11:10:41 +0000 (06:10 -0500)
Removed unused toggle variable form smart-rules.pl and added highlighting to smart-rules.tmpl through template __odd__.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
admin/smart-rules.pl
koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tmpl

index ce7dc9d..40e9084 100755 (executable)
@@ -349,7 +349,6 @@ $sth->finish;
 $sth=$dbh->prepare("SELECT description,itemtype FROM itemtypes ORDER BY description");
 $sth->execute;
 # $i=0;
-my $toggle= 1;
 my @row_loop;
 my @itemtypes;
 while (my $row=$sth->fetchrow_hashref){
index 383e979..166746e 100644 (file)
@@ -71,7 +71,11 @@ $(document).ready(function() {
                 <th>Loan Period</th><th>&nbsp;</th>
             </tr>
             <!-- TMPL_LOOP NAME="rules" -->
+                <!-- TMPL_UNLESS NAME="__odd__" -->
+                <tr class="highlight">
+                <!-- TMPL_ELSE -->
                 <tr>
+                <!-- /TMPL_UNLESS -->
                     <td><!-- TMPL_IF NAME="default_humancategorycode" -->
                             <em>Default</em>
                         <!-- TMPL_ELSE -->
@@ -197,7 +201,11 @@ $(document).ready(function() {
                     <th>&nbsp;</th>
                 </tr>
                 <!-- TMPL_LOOP NAME="branch_cat_rule_loop" -->
+                    <!-- TMPL_UNLESS NAME="__odd__" -->
+                    <tr class="highlight">
+                    <!-- TMPL_ELSE -->
                     <tr>
+                    <!-- /TMPL_UNLESS -->
                         <td><!-- TMPL_IF NAME="default_humancategorycode" -->
                                 <em>Default</em>
                             <!-- TMPL_ELSE -->
@@ -263,7 +271,11 @@ $(document).ready(function() {
                     <th>&nbsp;</th>
                 </tr>
                 <!-- TMPL_LOOP NAME="branch_item_rule_loop" -->
+                    <!-- TMPL_UNLESS NAME="__odd__" -->
+                    <tr class="highlight">
+                    <!-- TMPL_ELSE -->
                     <tr>
+                    <!-- /TMPL_UNLESS -->
                         <td><!-- TMPL_IF NAME="default_humanitemtype" -->
                                 <em>Default</em>
                             <!-- TMPL_ELSE -->