From 4e45bacc48559fdde3bcb22bf2798621baf42408 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Wed, 19 Oct 2022 22:51:45 +0000 Subject: [PATCH] Bug 31830: Add page-section class to acq home table To test: 1. Go to the Acquisitions home page. 2. Look and the bugdets and funds table and notice the page-section class. 3. Make sure everything looks good. Note: I made some indentation changes. Signed-off-by: David Nind Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- .../prog/en/modules/acqui/acqui-home.tt | 183 +++++++++--------- 1 file changed, 92 insertions(+), 91 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt index 9a81ed8b90..4ec33c3ea7 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tt @@ -105,100 +105,101 @@ +
+ -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - [% FOREACH loop_budge IN loop_budget %] - [% IF loop_budge.budget_parent_id %] - - [% ELSE %] - - [% END %] - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + [% FOREACH loop_budge IN loop_budget %] + [% IF loop_budge.budget_parent_id %] + [% ELSE %] - - [% loop_budge.budget_ordered | $Price %] - + [% END %] - - - - - [% END %] - -
ActiveBudget period descriptionFund codeFund nameOwnerLibraryAmountOrderedSpentTotal available
Total
[% loop_budge.budget_period_active | html %]Budget [% loop_budge.budget_period_description | html %] [id=[% loop_budge.budget_period_id | html %]][% UNLESS loop_budge.budget_period_active %] (inactive)[% END %] - [% IF ( CAN_user_acquisition_budget_manage ) %] - [% loop_budge.budget_code | html %] - [% ELSE %] - [% loop_budge.budget_code | html %] - [% END %] - [% loop_budge.budget_name | html %][% IF ( loop_budge.budget_owner ) %] - [% loop_budge.budget_owner.surname | html %], [% loop_budge.budget_owner.firstname | html %] - [% ELSE %] -   - [% END %] - [% Branches.GetName( loop_budge.budget_branchcode ) | html %] - [% loop_budge.budget_amount | $Price %] - - - [% IF loop_budge.children.size %] - - ([% loop_budge.budget_ordered | $Price %]) - - [% loop_budge.total_ordered | $Price %] +
ActiveBudget period descriptionFund codeFund nameOwnerLibraryAmountOrderedSpentTotal available
Total
- [% IF loop_budge.children.size %] - - ([% loop_budge.budget_spent | $Price %]) - - [% loop_budge.total_spent | $Price %] - [% ELSE %] - - [% loop_budge.budget_spent | $Price %] - - [% END %] - - [% IF loop_budge.children.size %] - ([% loop_budge.budget_avail | $Price %]) - [% loop_budge.total_avail | $Price %] - [% ELSE %] - [% loop_budge.budget_avail | $Price %] - [% END %] -
-
+ + [% loop_budge.budget_period_active | html %] + Budget [% loop_budge.budget_period_description | html %] [id=[% loop_budge.budget_period_id | html %]][% UNLESS loop_budge.budget_period_active %] (inactive)[% END %] + + [% IF ( CAN_user_acquisition_budget_manage ) %] + [% loop_budge.budget_code | html %] + [% ELSE %] + [% loop_budge.budget_code | html %] + [% END %] + + [% loop_budge.budget_name | html %] + [% IF ( loop_budge.budget_owner ) %] + [% loop_budge.budget_owner.surname | html %], [% loop_budge.budget_owner.firstname | html %] + [% ELSE %] +   + [% END %] + + [% Branches.GetName( loop_budge.budget_branchcode ) | html %] + + [% loop_budge.budget_amount | $Price %] + + + + [% IF loop_budge.children.size %] + + ([% loop_budge.budget_ordered | $Price %]) + + [% loop_budge.total_ordered | $Price %] + [% ELSE %] + + [% loop_budge.budget_ordered | $Price %] + + [% END %] + + + [% IF loop_budge.children.size %] + + ([% loop_budge.budget_spent | $Price %]) + + [% loop_budge.total_spent | $Price %] + [% ELSE %] + + [% loop_budge.budget_spent | $Price %] + + [% END %] + + + [% IF loop_budge.children.size %] + ([% loop_budge.budget_avail | $Price %]) + [% loop_budge.total_avail | $Price %] + [% ELSE %] + [% loop_budge.budget_avail | $Price %] + [% END %] + + + [% END %] + + + + [% END %] -- 2.39.5