Bug 15321 - Add delete report link to Show, Edit and Run screens
authorMagnus Enger <magnus@libriotech.no>
Tue, 8 Dec 2015 19:45:39 +0000 (20:45 +0100)
committerKyle M Hall <kyle@bywatersolutions.com>
Thu, 31 Dec 2015 15:44:29 +0000 (15:44 +0000)
commit404a11a9a504c6bb498f95e20003462cf536ffdc
tree980631a7bd9a173e3fc811e7d8216f9d784b6e6c
parent22db2a85f90172a0a5176a56d1ca3c66fe14f175
Bug 15321 - Add delete report link to Show, Edit and Run screens

Currently, if you are editing or viewing the results of running a
report and you decide you want to delete it, you have to go back
to the list of saved reports to do so. This patch adds a "Delete"
link in some convenient places.

To test:
- Apply the patch
- Make sure you have at least one saved report
- Make sure you have the create_reports permission
- Go to the Show, Edit and Run screens and verify the Delete link
  is present and functional, including the JavaScript confirmation
  dialogue
- Change to a user without the create_reports permission and check
  that the Delete link is not displayed on the Show, Edit and Run
  screens
- Sign ye off merrily!

Version 2: This version makes sure the JavaScript confirmation is
shown before an actual delete is carried out.

Signed-off-by: Heather Braum <hbraum@nekls.org>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/includes/reports-toolbar.inc
koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt