|
Lines 719-725
canned reports and writing custom SQL reports.</p>
Link Here
|
| 719 |
<h1>[% name | html %]</h1> |
719 |
<h1>[% name | html %]</h1> |
| 720 |
[% IF ( notes ) %]<p><span class="label">Notes:</span> [% notes | html %]</p>[% END %] |
720 |
[% IF ( notes ) %]<p><span class="label">Notes:</span> [% notes | html %]</p>[% END %] |
| 721 |
[% IF ( unlimited_total ) %]<p><span class="label">Total number of results:</span> [% unlimited_total | html %][% IF unlimited_total > limit %] ([% limit | html %] shown)[% END %].</p>[% END %] |
721 |
[% IF ( unlimited_total ) %]<p><span class="label">Total number of results:</span> [% unlimited_total | html %][% IF unlimited_total > limit %] ([% limit | html %] shown)[% END %].</p>[% END %] |
| 722 |
<div id="sql_output" style="display:none;"><span class="label">Report SQL:</span><pre>[% sql | html %]</pre></div> |
722 |
|
|
|
723 |
<div id="sql_output" style="display:none;"> |
| 724 |
<span class="label">Report SQL:</span> |
| 725 |
<textarea id="sql" readonly="readonly">[% sql | html %]</textarea> |
| 726 |
</div> |
| 723 |
|
727 |
|
| 724 |
<div> |
728 |
<div> |
| 725 |
<a href="#" id="toggle_chart_settings_hid" class="toggle_chart_settings" style="display:none"><i class="fa fa-eye-slash"></i> Hide chart</a> |
729 |
<a href="#" id="toggle_chart_settings_hid" class="toggle_chart_settings" style="display:none"><i class="fa fa-eye-slash"></i> Hide chart</a> |
|
Lines 1054-1060
canned reports and writing custom SQL reports.</p>
Link Here
|
| 1054 |
} |
1058 |
} |
| 1055 |
|
1059 |
|
| 1056 |
$(document).ready(function(){ |
1060 |
$(document).ready(function(){ |
| 1057 |
|
1061 |
var showsql; |
| 1058 |
hide_bar_element(); |
1062 |
hide_bar_element(); |
| 1059 |
|
1063 |
|
| 1060 |
if ( $('.chart-column-conf').length == 1 ) { |
1064 |
if ( $('.chart-column-conf').length == 1 ) { |
|
Lines 1321-1326
canned reports and writing custom SQL reports.</p>
Link Here
|
| 1321 |
$("#sql_output").toggle(); |
1325 |
$("#sql_output").toggle(); |
| 1322 |
$("#toggle_sql_hid").toggle(); |
1326 |
$("#toggle_sql_hid").toggle(); |
| 1323 |
$("#toggle_sql_vis").toggle(); |
1327 |
$("#toggle_sql_vis").toggle(); |
|
|
1328 |
if( !showsql ){ |
| 1329 |
showsql = CodeMirror.fromTextArea(sql, { |
| 1330 |
lineNumbers: false, |
| 1331 |
mode: "text/x-sql", |
| 1332 |
lineWrapping: true, |
| 1333 |
readOnly: true |
| 1334 |
}); |
| 1335 |
} |
| 1324 |
}); |
1336 |
}); |
| 1325 |
|
1337 |
|
| 1326 |
$(".toggle_chart_settings").click(function(){ |
1338 |
$(".toggle_chart_settings").click(function(){ |
| 1327 |
- |
|
|