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}}" id="{{cell.data}}" data-asc-sorted=0> | 5 <th class="{{cell.class}}" id="{{cell.data}}" 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 {% if not loop.last -%} | 28 {% if not loop.last -%} |
29 <br /> | 29 <br /> |
30 {%- endif %} | 30 {%- endif %} |
31 {% endfor %} | 31 {%- endfor %} |
32 {%- elif cell.cell_type == 'action' -%} | 32 {%- elif cell.cell_type == 'action' -%} |
33 <a onclick="{{cell.action}}">{{cell.data}}</a> | 33 <a onclick="{{cell.action}}">{{cell.data}}</a> |
34 {%- else -%} | 34 {%- else -%} |
35 {{cell.data}} | 35 {{cell.data}} |
36 {%- endif %} | 36 {%- endif %} |
37 </td> | 37 </td> |
38 {%- endfor %} | 38 {%- endfor %} |
39 </tr> | 39 </tr> |
40 {%- endfor %} | 40 {%- endfor %} |
41 </tbody> | 41 </tbody> |
42 {%- endfor %} | 42 {%- endfor %} |
43 <tfoot> | 43 <tfoot> |
44 <tr> | 44 <tr> |
45 {% for cell in tb_value.table_footer -%} | 45 {% for cell in tb_value.table_footer -%} |
46 <td class="{{tb_value.table_id}}-summary-column-{{loop.index0}} {{cell
.class}}"> | 46 <td class="{{tb_value.table_id}}-summary-column-{{loop.index0}} {{cell
.class}}"> |
47 {% if cell.cell_type == 'links' -%} | 47 {% if cell.cell_type == 'links' -%} |
48 {% for link in cell.links %} | 48 {% for link in cell.links -%} |
49 <a href="{{link.href}}" target="{{link.target}}"><b>{{link.data}
}</b></a> | 49 <a href="{{link.href}}" target="{{link.target}}"><b>{{link.data}
}</b></a> |
50 {% endfor %} | 50 {%- endfor %} |
51 {%- elif cell.cell_type == 'action' -%} | 51 {%- elif cell.cell_type == 'action' -%} |
52 <a onclick="{{cell.action}}">{{cell.data}}</a> | 52 <a onclick="{{cell.action}}">{{cell.data}}</a> |
53 {%- else -%} | 53 {%- else -%} |
54 <b>{{cell.data}}</b> | 54 <b>{{cell.data}}</b> |
55 {%- endif %} | 55 {%- endif %} |
56 </td> | 56 </td> |
57 {%- endfor %} | 57 {%- endfor %} |
58 </tr> | 58 </tr> |
59 </tfoot> | 59 </tfoot> |
60 </table> | 60 </table> |
OLD | NEW |