{% load i18n %} {% for row in rows %}
{% for input in row.inputs %} {# `relative`, because the admin's date JS drops an absolutely #} {# positioned timezone note beside its input, and the theme #} {# styles it to sit in the corner of the field it belongs to. #} {# Without a positioned wrapper it lands in the card's corner. #}
{{ input }} {% if input.help_text %} {{ input.help_text }} {% endif %} {% for error in input.errors %} {{ error }} {% endfor %}
{% endfor %}
{% if row.previews %} {# What the field points at now. A thumbnail for a picture, a link #} {# for anything else -- an editor about to replace it should be #} {# looking at it rather than at its address. #}
{% for preview in row.previews %} {% if preview.is_image %} {% else %} {{ preview.url|truncatechars:60 }} {% endif %} {% endfor %}
{% endif %} {{ row.field.slug }} · {{ row.field.get_field_type_display }}{% if row.field.multiple %} ({% trans "list" %}){% endif %} {% if row.field.required %}· {% trans "required" %}{% endif %} {% if not row.field.is_active %}· {% trans "hidden from the API" %}{% endif %}
{% empty %} {% trans "No fields in this section yet." %} {% endfor %}