summaryrefslogtreecommitdiff
path: root/template/adm/include/multi_tables.html
blob: 1f51300e94e942771411ab13ce37b81783708b2f (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
{%load date_or_string%}
{%for table in tables%}
<div class="tablewrap">
<h2>{{table.title}}</h2>
<table class="table table-bordered table-striped table-hover table-condensed {{table.extraclasses}}">
<tr>
{%for c in table.columns%}
{%if forloop.counter > table.hidecols|default:0%}
<th>{{c}}</th>
{%endif%}
{%endfor%}
</tr>
{%for row,link in table.rows %}
<tr {%if forloop.last%}class="lastrow"{%endif%}>
{%for c in row%}
{%if forloop.counter > table.hidecols|default:0%}
<td>{%if link and forloop.counter0 == table.hidecols%}<a href="{{link}}">{%endif%}{{c|date_or_string}}{%if link and forloop.counter0 == table.hidecols%}</a>{%endif%}</td>
{%endif%}
{%endfor%}
</tr>
{%endfor%}
</table>
{%endfor%}
</div>