git://git.onelab.eu
/
unfold.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add organization: fixed
[unfold.git]
/
rest
/
templates
/
table-default.html
diff --git
a/rest/templates/table-default.html
b/rest/templates/table-default.html
index
aeed984
..
d971306
100644
(file)
--- a/
rest/templates/table-default.html
+++ b/
rest/templates/table-default.html
@@
-1,21
+1,15
@@
{% load rest_filters %}
<thead>
<tr>
{% load rest_filters %}
<thead>
<tr>
- {% for p in properties %}
- <th>
- {{ p }}
- </th>
- {% endfor %}
+ {% if "checkbox" in options %}<th><input type="checkbox" name="{{ id }}" /></th>{% endif %}
+ {% for f in fields %}<th>{{ f }}</th>{% endfor %}
</tr>
</thead>
<tbody>
{% for d in data %}
</tr>
</thead>
<tbody>
{% for d in data %}
-<tr>
- {% for p in properties %}
- <td>
- <div class="line1">{{ d|key:p }}</div>
- </td>
- {% endfor %}
+<tr data-key="{{ d|key:id }}">
+ {% if "checkbox" in options %}<td><input type="checkbox" name="{{ id }}" value="{{ d|key:id }}" /></td>{% endif %}
+ {% for f in fields %}<td><div class="line1">{{ d|key:f }}</div></td>{% endfor %}
</tr>
{% endfor %}
</tbody>
\ No newline at end of file
</tr>
{% endfor %}
</tbody>
\ No newline at end of file