Bug 15421: Show 'Duplicate' and 'Schedule' on Reports toolbar
To test:
1) Go to Reports -> Use saved
2) Click 'Show' on the dropdown for any report
3) Confirm that 'Duplicate and 'Schedule' are now on the toolbar and work as expected
Sponsored-by: Catalyst IT
Signed-off-by: Marc Véron <veron@veron.ch>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com
(cherry picked from commit a9d7292a10)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
This commit is contained in:
parent
bd4659d09f
commit
8695bfbb6c
|
|
@ -10,14 +10,19 @@
|
|||
[% END %]
|
||||
|
||||
[% IF ( showsql || execute || editsql || save_successful ) %]
|
||||
[% UNLESS ( editsql ) # Do not show edit button on edit page %]
|
||||
[% IF ( CAN_user_reports_create_reports ) %]
|
||||
[% IF ( CAN_user_reports_create_reports ) %]
|
||||
[% UNLESS ( editsql ) # Do not show edit button on edit page %]
|
||||
<div class="btn-group">
|
||||
<a id="editreport" class="btn btn-small" href="/cgi-bin/koha/reports/guided_reports.pl?reports=[% id %]&phase=Edit%20SQL">
|
||||
<i class="fa fa-pencil"></i> Edit
|
||||
</a>
|
||||
</div>
|
||||
[% END %]
|
||||
<div class="btn-group">
|
||||
<a class="btn btn-small" title="Duplicate this saved report" href="/cgi-bin/koha/reports/guided_reports.pl?phase=Create report from SQL&sql=[% sql %]&reportname=[% reportname %]&notes=[% notes %]">
|
||||
<i class="fa fa-copy"></i> Duplicate
|
||||
</a>
|
||||
</div>
|
||||
[% END %]
|
||||
|
||||
[% UNLESS ( errors ) # Unless there are errors saving a report %]
|
||||
|
|
@ -26,6 +31,11 @@
|
|||
<i class="fa fa-play"></i> Run report
|
||||
</a>
|
||||
</div>
|
||||
<div class="btn-group">
|
||||
<a class="btn btn-small" href="/cgi-bin/koha/tools/scheduler.pl?id=[% id %]">
|
||||
<i class="fa fa-clock-o"></i> Schedule
|
||||
</a>
|
||||
</div>
|
||||
[% END %]
|
||||
[% END %]
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue