Commit 9fe7ec66 authored by Frédéric Buclin's avatar Frédéric Buclin

Bug 1232716: Tabular reports with no column selected are not sortable

r=dkl
parent 76fd2f89
...@@ -37,18 +37,21 @@ ...@@ -37,18 +37,21 @@
[% total_key = '-total-' %] [% total_key = '-total-' %]
[%# Most of these classes are defined in the DataTables plugin itself. %] [%# Most of these classes are defined in the DataTables plugin itself. %]
<table id="tabular_report_[% table_id FILTER html %]" class="tabular_report display cell-border compact"> <table id="tabular_report_[% table_id FILTER html %]" class="tabular_report display cell-border compact">
[% IF col_field %] <thead>
<thead>
<tr> <tr>
<th>&darr;&nbsp;[% row_field_disp FILTER html %] \ [% col_field_disp FILTER html %]&nbsp;&rarr;</th> <th>
[% IF col_field %]
&darr;&nbsp;[% row_field_disp FILTER html %] \ [% col_field_disp FILTER html %]&nbsp;&rarr;
[% ELSE %]
[% row_field_disp FILTER html %]
[% END %]
</th>
[% FOREACH col = col_names %] [% FOREACH col = col_names %]
[% NEXT IF col == "" %]
<th>[% PROCESS value_display value = col field = col_field %]</th> <th>[% PROCESS value_display value = col field = col_field %]</th>
[% END %] [% END %]
<th class="ttotal">Total</th> <th class="ttotal">Total</th>
</tr> </tr>
</thead> </thead>
[% END %]
<tbody> <tbody>
[% FOREACH row = row_names %] [% FOREACH row = row_names %]
<tr> <tr>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment