From 31781ffb02c3a806e0956ca07dfc24beab0b88dd Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Fri, 9 May 2014 09:35:03 -0400 Subject: [PATCH] Bug 12214: (follow-up) Clean up reports-toolbar.inc, show Edit link when SQL has errors Signed-off-by: Kyle M Hall Signed-off-by: Galen Charlton --- .../prog/en/includes/reports-toolbar.inc | 32 +++++++++++++------ 1 file changed, 23 insertions(+), 9 deletions(-) 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 782fc83aba..b7e7a7951c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/reports-toolbar.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/reports-toolbar.inc @@ -1,17 +1,31 @@
- [% IF ( CAN_user_reports_create_reports ) %]
- + [% IF ( CAN_user_reports_create_reports ) %] + [% END %] -[% IF ( showsql || execute || editsql || save_successful ) %] - [% UNLESS ( errors ) %][%# Unless there are errors saving a report %] - [% UNLESS ( editsql ) %][%# Do not show edit button on edit page %] - [% IF ( CAN_user_reports_create_reports ) %][% END %] +
+ [% END %] + + [% IF ( showsql || execute || editsql || save_successful ) %] + [% UNLESS ( editsql ) # Do not show edit button on edit page %] + [% IF ( CAN_user_reports_create_reports ) %] + + [% END %] + [% END %] + + [% UNLESS ( errors ) # Unless there are errors saving a report %] + [% END %] - [% END %] -[% END %]
-- 2.39.5