X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=rest%2Ftemplates%2Ftable-default.html;h=d9713060cee32a331bf447ad11a16f20521e6798;hb=6e577f8d7a1332e0d308ab7b09e4e745c4ed3cc5;hp=da7ba0c263051b4ddbde1ebc5d418d384510cc88;hpb=d251934bd71c678f552dc9a1d49c3f8efe102e1e;p=myslice.git diff --git a/rest/templates/table-default.html b/rest/templates/table-default.html index da7ba0c2..d9713060 100644 --- a/rest/templates/table-default.html +++ b/rest/templates/table-default.html @@ -1,15 +1,15 @@ {% load rest_filters %} - {% if "checkbox" in options %}checkbox{% endif %} - {% for p in properties %}{{ p }}{% endfor %} + {% if "checkbox" in options %}{% endif %} + {% for f in fields %}{{ f }}{% endfor %} {% for d in data %} - - {% if "checkbox" in options %}{% endif %} - {% for p in properties %}
{{ d|key:p }}
{% endfor %} + + {% if "checkbox" in options %}{% endif %} + {% for f in fields %}
{{ d|key:f }}
{% endfor %} {% endfor %} \ No newline at end of file