Bug 7668 - Improve navigation and toolbar options in guided reports
authorOwen Leonard <oleonard@myacpl.org>
Wed, 7 Mar 2012 19:06:45 +0000 (14:06 -0500)
committerPaul Poulain <paul.poulain@biblibre.com>
Mon, 19 Mar 2012 17:00:15 +0000 (18:00 +0100)
commit20b68731e3d950dddb986805f6b7bd6f79e880d7
tree7ccd5ecec4edc046407ff2948884f330fb70f4df
parent973f84513f980722c2a5a30e9d7c8dd04f3af0ee
Bug 7668 - Improve navigation and toolbar options in guided reports

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.

Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css
koha-tmpl/intranet-tmpl/prog/en/includes/guided-reports-view.inc
koha-tmpl/intranet-tmpl/prog/en/includes/reports-toolbar.inc [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt
reports/guided_reports.pl