From c3a52a9b200f3e87033ecd8f42938eaa6ddab410 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Mon, 21 Apr 2014 04:15:11 +0000 Subject: [PATCH] Bug 7308: (follow-up) tweak style of child fund amounts This patch changes the styling of the amounts of child funds in the funds table to use a more visible indication (i.e., italics rather than a font color of grey) and to use a a new CSS class, "child_fund_amount", rather than a hard-coded style. Signed-off-by: Galen Charlton --- .../prog/en/css/staff-global.css | 3 ++ .../prog/en/modules/admin/aqbudgets.tt | 36 ++++++++++++------- 2 files changed, 26 insertions(+), 13 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css index 8557977e91..8abe90d975 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css +++ b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css @@ -1872,6 +1872,9 @@ ul.budget_hierarchy li:last-child:after { ul.budget_hierarchy li:first-child:after { content: ""; } +.child_fund_amount { + font-style: italic; +} .holdcount { font-size : 105%; line-height : 200%; } .holdcount a { border : 1px solid #a4bedd; 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 1a88548452..6c63e1262e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt @@ -278,35 +278,35 @@ var MSG_PARENT_BENEATH_BUDGET = "- " + _("New budget-parent is beneath budget") [% budge.budget_name %] [% IF budge.budget_parent_id %] - [% budge.budget_amount %] + [% budge.budget_amount %] [% ELSE %] [% budge.budget_amount %] [% END %] [% IF budge.budget_parent_id %] - [% budge.budget_ordered %] + [% budge.budget_ordered %] [% ELSE %] [% budge.budget_ordered %] [% END %] [% IF budge.budget_parent_id %] - [% budge.total_ordered %] + [% budge.total_ordered %] [% ELSE %] [% budge.total_ordered %] [% END %] [% IF budge.budget_parent_id %] - [% budge.budget_spent %] + [% budge.budget_spent %] [% ELSE %] [% budge.budget_spent %] [% END %] [% IF budge.budget_parent_id %] - [% budge.total_spent %] + [% budge.total_spent %] [% ELSE %] [% budge.total_spent %] [% END %] @@ -314,21 +314,31 @@ var MSG_PARENT_BENEATH_BUDGET = "- " + _("New budget-parent is beneath budget") [% BLOCK colorcellvalue %] - [% IF (value > 0) %] - - [% ELSIF (value < 0) %] - - [% ELSE %] - + [% IF parent %] + [% IF (value > 0) %] + + [% ELSIF (value < 0) %] + + [% ELSE %] + + [% END %] + [% ELSE %] + [% IF (value > 0) %] + + [% ELSIF (value < 0) %] + + [% ELSE %] + + [% END %] [% END %] [% text %] [% END %] - [% INCLUDE colorcellvalue value=budge.budget_remaining text=budge.budget_remaining_display %] + [% INCLUDE colorcellvalue value=budge.budget_remaining text=budge.budget_remaining_display parent=budge.budget_parent_id %] - [% INCLUDE colorcellvalue value=budge.total_remaining text=budge.total_remaining_display %] + [% INCLUDE colorcellvalue value=budge.total_remaining text=budge.total_remaining_display parent=budge.budget_parent_id %] [% IF ( budge.budget_owner_id ) %]Owner: [% budge.budget_owner_name %][% END %] -- 2.39.5