Bugzilla – Attachment 32067 Details for
Bug 13042
Move budget action links into menu
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13042 - Move budget action links into menu
Bug-13042---Move-budget-action-links-into-menu.patch (text/plain), 4.77 KB, created by
Owen Leonard
on 2014-10-08 14:26:14 UTC
(
hide
)
Description:
Bug 13042 - Move budget action links into menu
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2014-10-08 14:26:14 UTC
Size:
4.77 KB
patch
obsolete
>From 01acb0eeca7e5525c9895ab5db9612073c87725c Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >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 %] >+ <div class="dropdown"> >+ <a class="btn btn-mini dropdown-toggle" id="budgetmenu_[% block_budget_id %]" role="button" data-toggle="dropdown" href="#"> >+ Actions <b class="caret"></b> >+ </a> >+ <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="budgetmenu_[% block_budget_id %]"> >+ <li> >+ <a href="[% script_name %]?op=add_form&budget_period_id=[% block_budget_id |html %]"><i class="icon-pencil"></i> Edit</a> >+ </li> >+ <li> >+ <a href="[% script_name %]?op=delete_confirm&budget_period_id=[% block_budget_id %]"><i class="icon-remove"></i> Delete</a> >+ </li> >+ <li> >+ <a href="[% script_name %]?op=duplicate_form&budget_period_id=[% block_budget_id %]"><i class="icon-copy"></i> Duplicate</a> >+ </li> >+ <li> >+ <a href="[% script_name %]?op=close_form&budget_period_id=[% block_budget_id %]"><i class="icon-remove-sign"></i> Close</a> >+ </li> >+ <li> >+ <a href="/cgi-bin/koha/admin/aqbudgets.pl?op=add_form&budget_period_id=[% block_budget_id %]"><i class="icon-plus"></i> Add fund</a> >+ </li> >+ </ul> >+ </div> >+[% END -%] > [% INCLUDE 'doc-head-open.inc' %] > <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" /> > [% INCLUDE 'doc-head-close.inc' %] >@@ -540,11 +564,7 @@ > </td> > <td class="data">[% period_active.budget_period_total %]</td> > <td> >- <a href="[% script_name %]?op=add_form&budget_period_id=[% period_active.budget_period_id |html %]">Edit</a> >- <a href="[% script_name %]?op=delete_confirm&budget_period_id=[% period_active.budget_period_id %]">Delete</a> >- <a href="[% script_name %]?op=duplicate_form&budget_period_id=[% period_active.budget_period_id %]">Duplicate</a> >- <a href="[% script_name %]?op=close_form&budget_period_id=[% period_active.budget_period_id %]">Close</a> >- <a href="/cgi-bin/koha/admin/aqbudgets.pl?op=add_form&budget_period_id=[% period_active.budget_period_id %]">Add fund</a> >+ [% PROCESS action_menu block_budget_id=period_active.budget_period_id %] > </td> > </tr> > [% END %] >@@ -581,11 +601,7 @@ > <td> [% IF ( period_loo.budget_period_locked ) %]<span style="color:green;">Locked</span> [% ELSE %][% END %] </td> > <td class="data">[% period_loo.budget_period_total %]</td> > <td> >- <a href="[% script_name %]?op=add_form&budget_period_id=[% period_loo.budget_period_id |html %]">Edit</a> >- <a href="[% script_name %]?op=delete_confirm&budget_period_id=[% period_loo.budget_period_id %]">Delete</a> >- <a href="[% script_name %]?op=duplicate_form&budget_period_id=[% period_loo.budget_period_id %]">Duplicate</a> >- <a href="[% script_name %]?op=close_form&budget_period_id=[% period_loo.budget_period_id %]">Close</a> >- <a href="/cgi-bin/koha/admin/aqbudgets.pl?op=add_form&budget_period_id=[% period_loo.budget_period_id %]">Add fund</a> >+ [% PROCESS action_menu block_budget_id=period_loo.budget_period_id %] > </td> > </tr> > [% END %] >-- >1.7.9.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 13042
:
32064
|
32067
|
32527
|
32570