Bug 2889: Added highlighting to smart-rules.tmpl
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>
This commit is contained in:
parent
0b3f75183b
commit
b776266faa
2 changed files with 12 additions and 1 deletions
|
@ -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){
|
||||
|
|
|
@ -71,7 +71,11 @@ $(document).ready(function() {
|
|||
<th>Loan Period</th><th> </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> </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> </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 -->
|
||||
|
|
Loading…
Reference in a new issue