{% 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 == 'number' %}
{% elsif type == 'enum' or type == 'foreign-key' %}
{% elsif type == 'video' %}
{% elsif type == 'image' %}
{% elsif type == 'date' %}
{% elsif type == 'flag' %}
{% elsif type == 'tag-list' %}
{% elsif type == 'link-list' %}
{% for url in spec.value %}
{% endfor %}
{% elsif type == 'media-list' %}
{% for image in spec.value %}
{% if image.token %}
{% else %}
{% endif %}
{% endfor %}
{% elsif type == 'captioned-image-list' %}
{% for image in spec.value %}
{% endfor %}
{% elsif type == 'double-captioned-image-list' %}
{% for image in spec.value %}
{% endfor %}
{% elsif type == 'meta' %}
{% else %}
Admin template doesn't support '{{type}}' properties!