</div>
[% END %]
[% IF ( showsql || execute || editsql || save_successful || runreport ) %]
[% IF ( showsql || execute || editsql || save_successful ) %]
[% IF ( CAN_user_reports_create_reports ) %]
[% UNLESS ( editsql ) # Do not show edit button on edit page %]
<div class="btn-group">
[% IF ( runreport ) %]
[% IF ( execute ) %]
<button class="btn btn-small dropdown-toggle" data-toggle="dropdown" id="format"><i class="fa fa-upload"></i> Download <span class="caret"></span></button>
<ul class="dropdown-menu">
$url = join('&sql_params=', $url, map { URI::Escape::uri_escape_utf8($_) } @sql_params);
}
$template->param(
'runreport' => 1,
'results' => \@rows,
'sql' => $sql,
'id' => $report_id,
-