{{dl.title}}{% if user.is_superuser %}[edit dl {{dl.id}}]{% endif %}
{% for dt in dl.data_titles.all %}
- {{dt.text}}
{% if user.is_superuser %}[edit dt {{dt.id}}]{% endif %}
{% for dd in dt.data_items.all %}
-
{{dd.text|linebreaks}}
{% if dd.options %}
{% for opt in dd.options.all %}
{% if opt.images %}
{% for image in opt.images.all %}
{% include 'parts/dom-image.html' %}
{% endfor %}
{% endif %}
{% if opt.lists %}
{% for l in opt.lists.all %}
{% ifequal l.kind "numbered" %}
{% else %}{% endifequal %}
{% if user.is_superuser %}[edit list {{l.id}}]{% endif %}
{% for li in l.list_items.all %}
- {{li.text|linebreaks}}
{% if li.options.images %}
{% for image in li.options.images.all %}
{% include 'parts/dom-image.html' %}
{% endfor %}
{% endif %}
{% if user.is_superuser %}..{% endif %}
{% endfor %}
{% ifequal l.kind "numbered" %}
{% else %}{% endifequal %}
{% endfor %}
{% endif %}
{% endfor %}
{% endif %}
{% if user.is_superuser %}[edit dd {{dd.id}}]{% endif %} {% endfor %}
{% endfor %}