From 01acb0eeca7e5525c9895ab5db9612073c87725c 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 Content-Type: text/plain; charset="utf-8" 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. --- .../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 51b8b8a..6630e89 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 %] @@ -581,11 +601,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 %] -- 1.7.9.5