summaryrefslogtreecommitdiff
path: root/ishtar_common/templates
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2017-10-18 12:52:28 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2017-10-18 12:52:28 +0200
commitc0c501399260e315dd2d0b72cb6825481bf91311 (patch)
treeacc2befd68fab9d757a1e02e035595eefd28de45 /ishtar_common/templates
parentd49dc63a205f3e8281ada8b9fabb3d7ceeec80ba (diff)
downloadIshtar-c0c501399260e315dd2d0b72cb6825481bf91311.tar.bz2
Ishtar-c0c501399260e315dd2d0b72cb6825481bf91311.zip
Json fields: manage dynamic json fields display in the sheets (refs #3077)
Diffstat (limited to 'ishtar_common/templates')
-rw-r--r--ishtar_common/templates/ishtar/blocks/sheet_json.html11
1 files changed, 11 insertions, 0 deletions
diff --git a/ishtar_common/templates/ishtar/blocks/sheet_json.html b/ishtar_common/templates/ishtar/blocks/sheet_json.html
new file mode 100644
index 000000000..31e6acb84
--- /dev/null
+++ b/ishtar_common/templates/ishtar/blocks/sheet_json.html
@@ -0,0 +1,11 @@
+{% load i18n window_field %}
+{% for json_section, json_fields in item.json_sections %}
+{% if json_section %}
+<h3>{{json_section}}</h3>
+{% endif %}
+{% for label, value in json_fields %}
+{% if forloop.first %}<ul class='form-flex'>{% endif %}
+ {% field_li label value %}
+{% if forloop.last %}</ul>{% endif %}
+{% endfor %}
+{% endfor %}