{% for pair in resource.spec %} {% assign name = pair[0] %} {% assign spec = pair[1] %} {% assign type = spec.type %}
{% if type == 'string' %} {% elsif type == 'text' %} {% elsif type == 'enum' %} {% elsif type == 'video' %}
{% elsif type == 'captioned-image-list' %}
    {% for image in spec.value %}
  1. {{image.caption}}
  2. {% endfor %}
+ Add images
{% else %}

Admin template doesn't support '{{type}}' properties!

{% endif %}
{% endfor %}