Removed toggle variable from overduerules.pl and overduerules.tmpl. Used template variable __odd__ instead.
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
<th scope="col">Delay</th><th scope="col">Letter</th><th scope="col">Debar</th><th scope="col">Delay</th><th scope="col">Letter</th><th scope="col">Debar</th><th scope="col">Delay</th><th scope="col">Letter</th><th scope="col">Debar</th>
</tr>
<!-- TMPL_LOOP NAME="table" -->
- <!-- TMPL_IF NAME="toggle" -->
+ <!-- TMPL_UNLESS NAME="__odd__" -->
<tr class="highlight">
<!-- TMPL_ELSE -->
<tr>
- <!-- /TMPL_IF -->
+ <!-- /TMPL_UNLESS -->
<th scope="row"><!-- TMPL_VAR NAME="line" --></th>
<td>
<input name="delay1-<!-- TMPL_VAR NAME="overduename" -->" size="5" value="<!-- TMPL_VAR NAME="delay1" -->" />
my $countletters = scalar $letters;
my @line_loop;
-my $toggle = 1;
for my $data (@categories) {
- if ( $toggle eq 1 ) {
- $toggle = 0;
- } else {
- $toggle = 1;
- }
my %row = (
overduename => $data->{'categorycode'},
- toggle => $toggle,
line => $data->{'description'}
);
if (%temphash and not $input_saved){