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