From e89d864d6e8deca7e4d35dbfec4299828874ff75 Mon Sep 17 00:00:00 2001 From: Ciro Scognamiglio Date: Fri, 28 Feb 2014 20:11:49 +0100 Subject: [PATCH 1/1] added checkbox option --- rest/templates/table-default.html | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) 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 -- 2.45.2