Generic ObjectRequest class can be used for the rest interface
[myslice.git] / rest / templates / table-default.html
1 {% load rest_filters %}
2 <thead>
3 <tr>
4         {% if "checkbox" in options %}<th><input type="checkbox" name="{{ id }}" /></th>{% endif %}
5         {% for f in fields %}<th>{{ f }}</th>{% endfor %}
6 </tr>
7 </thead>
8 <tbody>
9 {% for d in data %}
10 <tr id="{{ id }}">
11         {% if "checkbox" in options %}<td><input type="checkbox" name="{{ id }}" /></td>{% endif %}
12         {% for f in fields %}<td><div class="line1">{{ d|key:f }}</div></td>{% endfor %}
13 </tr>
14 {% endfor %}
15 </tbody>