From: Ciro Scognamiglio Date: Fri, 28 Feb 2014 19:11:49 +0000 (+0100) Subject: added checkbox option X-Git-Tag: myslice-1.1~256^2~1 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=e89d864d6e8deca7e4d35dbfec4299828874ff75;p=myslice.git added checkbox option --- diff --git a/rest/templates/table-default.html b/rest/templates/table-default.html index aeed9848..da7ba0c2 100644 --- a/rest/templates/table-default.html +++ b/rest/templates/table-default.html @@ -1,21 +1,15 @@ {% load rest_filters %} - {% for p in properties %} - - {{ p }} - - {% endfor %} + {% if "checkbox" in options %}checkbox{% endif %} + {% for p in properties %}{{ p }}{% endfor %} {% for d in data %} - - {% for p in properties %} - -
{{ d|key:p }}
- - {% endfor %} + + {% if "checkbox" in options %}{% endif %} + {% for p in properties %}
{{ d|key:p }}
{% endfor %} {% endfor %} \ No newline at end of file