From 013a19e2daa7ead0fc213b7af701912f125ad181 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 28 Oct 2013 12:15:27 +0100 Subject: [PATCH 1/1] Bug 7308: change color style for fund child --- .../prog/en/modules/admin/aqbudgets.tt | 41 +++++++++++++++++--- 1 file changed, 36 insertions(+), 5 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt index bd3fcb9..eebc9d5 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt @@ -278,11 +278,42 @@ var MSG_PARENT_BENEATH_BUDGET = "- " + _("New budget-parent is beneath budget") [% budge.budget_code_indent %] [% budge.budget_name %] - [% budge.budget_amount %] - [% budge.budget_ordered %] - [% budge.total_ordered %] - [% budge.budget_spent %] - [% budge.total_spent %] + + [% IF budge.budget_parent_id %] + [% budge.budget_amount %] + [% ELSE %] + [% budge.budget_amount %] + [% END %] + + + [% IF budge.budget_parent_id %] + [% budge.budget_ordered %] + [% ELSE %] + [% budge.budget_ordered %] + [% END %] + + + [% IF budge.budget_parent_id %] + [% budge.total_ordered %] + [% ELSE %] + [% budge.total_ordered %] + [% END %] + + + [% IF budge.budget_parent_id %] + [% budge.budget_spent %] + [% ELSE %] + [% budge.budget_spent %] + [% END %] + + + [% IF budge.budget_parent_id %] + [% budge.total_spent %] + [% ELSE %] + [% budge.total_spent %] + [% END %] + + [% BLOCK colorcellvalue %] [% IF (value > 0) %] -- 1.7.10.4