Bug 15049: Simplify code in aqplan.tt

There was no need to duplicate this code in the template.
The only change with before this patch is that the "Currency = CUR"
and "Each cell contain both actual and estimated values." are now
displayed on 2 lines instead of 1.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2015-12-28 10:26:10 +00:00 committed by Brendan A Gallagher
parent 0bfd512759
commit e863f6645e

View file

@ -85,21 +85,13 @@
[% IF ( budget_lines ) %]
[% IF ( currency ) %]<p><b>Currency = [% currency %].</b>
[% INCLUDE 'budgets-active-currency.inc' %]
[% IF ( show_actual ) %]
<b>Each cell contain both actual and estimated values.</b>
<p><b>Each cell contain both actual and estimated values.</b></p>
[% ELSE %]
<b>Cells contain estimated values only.</b>
<p><b>Cells contain estimated values only.</b></p>
[% END %]
</p>
[% ELSE %]
[% INCLUDE 'budgets-active-currency.inc' hide = 'yes' %]
[% IF ( show_actual ) %]
<p><b>Each cell contain both actual and estimated values.</b></p>
[% ELSE %]
<p><b>Cells contain estimated values only.</b></p>
[% END %]
[% END %]
<p id="selections">
<strong>Show/hide columns:</strong> <span class="selected"><input type="checkbox" checked="checked" id="showall"/><label for="showall">Show all columns</label></span> <span><input type="checkbox" id="hideall"/><label for="hideall">Hide all columns</label></span>
[% FOREACH authvals_ro IN authvals_row %]