From a896db085334eb82e145a3a0cb9157dddd1100c6 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 7 Mar 2012 14:06:45 -0500 Subject: [PATCH] Bug 7668 - Improve navigation and toolbar options in guided reports Content-Type: text/plain; charset="utf-8" Creating new include, reports-toolbar.inc for presenting "action" options to the user, in contrast with "view" options in the left- hand navigation menu. In the toolbar: New (guided report, SQL report), Edit, Run. The presence of the toolbar allows the user to access functions more flexibly: Getting directly to 'edit' or 'run' from the 'view' page for instance. Modifications to guided_reports.pl pass report id and name to the template for clarity and for the purpose of enabling the edit/run buttons. To test: Apply the patch and go through the process of creating a new saved SQL report. Note that the toolbar is present and the buttons are functional at appropriate times. New and Edit options should only be displayed if the user has permission to create reports. Test with a user who does not have create permission to confirm. --- .../intranet-tmpl/prog/en/css/staff-global.css | 11 ++++- .../prog/en/includes/guided-reports-view.inc | 6 +-- .../prog/en/includes/reports-toolbar.inc | 44 ++++++++++++++++++++ .../en/modules/reports/guided_reports_start.tt | 21 +++++++--- reports/guided_reports.pl | 10 ++++- 5 files changed, 79 insertions(+), 13 deletions(-) create mode 100644 koha-tmpl/intranet-tmpl/prog/en/includes/reports-toolbar.inc diff --git a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css index fec66d6..eb0aae9 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css +++ b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css @@ -886,7 +886,16 @@ fieldset.rows .inputnote { background-repeat : no-repeat; } -#editpatron a, #editmenuc .first-child, #editshelf a, #edit a, #editsupplier a, #managelabel a, #managetemplate a, #managelabelbatch a, #manageprofile a { +#editpatron a, +#editreport a, +#editmenuc .first-child, +#editshelf a, +#edit a, +#editsupplier a, +#managelabel a, +#managetemplate a, +#managelabelbatch a, +#manageprofile a { padding-left : 34px; background-image: url("../../img/toolbar-edit.gif"); background-position : center left; diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/guided-reports-view.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/guided-reports-view.inc index d354170..aa03be8 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/guided-reports-view.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/guided-reports-view.inc @@ -1,8 +1,6 @@ -
Build and Run Reports
+
Run Reports
Reports Dictionary