diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/reports-toolbar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/reports-toolbar.inc index 9933d3c3c3..b7fa5559b9 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/reports-toolbar.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/reports-toolbar.inc @@ -20,6 +20,14 @@ [% END %] [% END %] + [% IF ( CAN_user_reports_create_reports ) %] +
+ + Delete + +
+ [% END %] + [% UNLESS ( errors ) # Unless there are errors saving a report %]
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt index bd1139c693..503dae32af 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt @@ -156,7 +156,7 @@ $(document).ready(function(){ $(this).select(); }); [% END %] -[% IF ( saved1 ) %] +[% IF ( saved1 || showsql || execute || editsql || save_successful ) %] $(".confirmdelete").click(function(){ $(this).parents('tr').attr("class","warn"); if(confirm(_("Are you sure you want to delete this saved report?"))){