table class tableview tr for in columns th render_header th endfor tr

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
<table class="tableview">
<tr>
{% for c in columns %}
<th>
{{ c.render_header() }}
</th>
{% endfor %}
</tr>
{% if data %}
{% for obj in data %}
<tr>
{% for c in columns %}
<td>
{{ c.render(obj) }}
</td>
{% endfor %}
</tr>
{% endfor %}
{% endif %}
</table>