From 0ab0c4a57153a146bd0d611263a9ba1d553f6f66 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 14 Feb 2014 10:38:35 +0100 Subject: [PATCH] Bug 11578: Hide inactive budgets by default This patch hides inactive budgets by default. They can be shown/hidden using 2 new links "Hide/Show inactive budgets". --- .../prog/en/modules/admin/aqbudgets.tt | 27 +++++++++++++++----- 1 file changed, 21 insertions(+), 6 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 6c4ea29..fd4a2d8 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt @@ -169,12 +169,12 @@ var MSG_PARENT_BENEATH_BUDGET = "- " + _("New budget-parent is beneath budget") } var nTrs = $('#budgeth tbody tr'); - var iColspan = nTrs[0].getElementsByTagName('td').length; + var iColspan = nTrs[1].getElementsByTagName('td').length; var sLastGroup = ""; for ( var i=0 ; i @@ -265,10 +275,13 @@ var MSG_PARENT_BENEATH_BUDGET = "- " + _("New budget-parent is beneath budget") + @@ -283,6 +296,7 @@ var MSG_PARENT_BENEATH_BUDGET = "- " + _("New budget-parent is beneath budget") + @@ -296,6 +310,7 @@ var MSG_PARENT_BENEATH_BUDGET = "- " + _("New budget-parent is beneath budget") [% FOREACH budget IN budgets %] + -- 1.7.10.4
Expand all - | Collapse all + | Collapse all + | Hide inactive budgets + | Show inactive budgets
Active Budget period description Fund code Fund name
Period allocated [% IF ( budget_period_total ) %][% budget_period_total %][% END %] [% period_alloc_total %] [% base_alloc_total %]
[% budget.budget_period_active %] Budget [% budget.budget_period_description %] [% budget.budget_code_indent %] [% budget.budget_name %]