From bd5d32731816d2ddd7430f1f59f29bb8c7476f6f Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 14 Feb 2014 10:38:35 +0100 Subject: [PATCH] Bug 11578: (follow-up) 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". Signed-off-by: Martin Renvoize Signed-off-by: Galen Charlton --- .../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 2684f79a1f..9f96af5e41 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt @@ -160,12 +160,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 @@ -256,10 +266,13 @@ var MSG_PARENT_BENEATH_BUDGET = "- " + _("New budget-parent is beneath budget") + @@ -276,6 +289,7 @@ var MSG_PARENT_BENEATH_BUDGET = "- " + _("New budget-parent is beneath budget") + @@ -290,6 +304,7 @@ var MSG_PARENT_BENEATH_BUDGET = "- " + _("New budget-parent is beneath budget") [% FOREACH budget IN budgets %] + -- 2.39.5
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 %]
[% budget.budget_period_active %] Budget [% budget.budget_period_description %] [% budget.budget_code_indent %] [% budget.budget_name %]