1<table id="{{tb_value.table_id}}" style="display:none;"> 2 <thead class="heads"> 3 <tr> 4 {% for cell in tb_value.table_headers -%} 5 <th class="{{cell.class}}" id="{{cell.data}}" data-asc-sorted=0> 6 {{cell.data}} 7 <span class="up" style="display:none;"> ↑</span> 8 <span class="down" style="display:none;"> ↓</span> 9 </th> 10 {%- endfor %} 11 </tr> 12 </thead> 13 {% for block in tb_value.table_row_blocks -%} 14 <tbody class="row_block"> 15 {% for row in block -%} 16 <tr class="{{tb_value.table_id}}-body-row"> 17 {% for cell in row -%} 18 {% if cell.rowspan -%} 19 <td rowspan="{{cell.rowspan}}" class="{{tb_value.table_id}}-body-column-{{loop.index0}} {{cell.class}}"> 20 {%- else -%} 21 <td rowspan="1" class="{{tb_value.table_id}}-body-column-{{loop.index0}} {{cell.class}}"> 22 {%- endif %} 23 {% if cell.cell_type == 'pre' -%} 24 <pre>{{cell.data}}</pre> 25 {%- elif cell.cell_type == 'links' -%} 26 {% for link in cell.links -%} 27 <a href="{{link.href}}" target="{{link.target}}">{{link.data}}</a> 28 {% if not loop.last -%} 29 <br /> 30 {%- endif %} 31 {%- endfor %} 32 {%- elif cell.cell_type == 'action' -%} 33 <a onclick="{{cell.action}}">{{cell.data}}</a> 34 {%- else -%} 35 {{cell.data}} 36 {%- endif %} 37 </td> 38 {%- endfor %} 39 </tr> 40 {%- endfor %} 41 </tbody> 42 {%- endfor %} 43 <tfoot> 44 <tr> 45 {% for cell in tb_value.table_footer -%} 46 <td class="{{tb_value.table_id}}-summary-column-{{loop.index0}} {{cell.class}}"> 47 {% if cell.cell_type == 'links' -%} 48 {% for link in cell.links -%} 49 <a href="{{link.href}}" target="{{link.target}}"><b>{{link.data}}</b></a> 50 {%- endfor %} 51 {%- elif cell.cell_type == 'action' -%} 52 <a onclick="{{cell.action}}">{{cell.data}}</a> 53 {%- else -%} 54 <b>{{cell.data}}</b> 55 {%- endif %} 56 </td> 57 {%- endfor %} 58 </tr> 59 </tfoot> 60</table> 61