From 91eb4252c7a120a6137123175e331dbe2f79dd77 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 8 Oct 2014 10:06:34 -0400 Subject: [PATCH] Bug 13042 - Move budget action links into menu The series of links in the "actions" column of the budgets administration summary table are not very readable as they are, all strung together: Edit Delete Duplicate Close Add fund. This patch moves the links into an "Actions" menu, similar to the change made by Bug 10615 in Reports. To test you should have multiple active and inactive budgets. Apply the patch and go to Administration -> Budgets. Confirm that each menu item links to the correct action. Test the menu for both active and inactive budgets. Signed-off-by: Paola Rossi Signed-off-by: Katrin Fischer Nice improvement on template level, works as described. Signed-off-by: Tomas Cohen Arazi --- .../prog/en/modules/admin/aqbudgetperiods.tt | 36 +++++++++++++------ 1 file changed, 26 insertions(+), 10 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgetperiods.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgetperiods.tt index be498606de..fab8c92faf 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgetperiods.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgetperiods.tt @@ -1,5 +1,29 @@ [% USE KohaDates %] [% USE format %] +[%- BLOCK action_menu %] + +[% END -%] [% INCLUDE 'doc-head-open.inc' %] [% INCLUDE 'doc-head-close.inc' %] @@ -540,11 +564,7 @@ [% period_active.budget_period_total %] - Edit - Delete - Duplicate - Close - Add fund + [% PROCESS action_menu block_budget_id=period_active.budget_period_id %] [% END %] @@ -577,11 +597,7 @@ [% IF ( period_loo.budget_period_locked ) %]Locked [% ELSE %][% END %] [% period_loo.budget_period_total %] - Edit - Delete - Duplicate - Close - Add fund + [% PROCESS action_menu block_budget_id=period_loo.budget_period_id %] [% END %] -- 2.39.2