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