| {{ header }} | {% endfor %} {% if table.inline.can_delete %}{{ _('Remove') }} | {% endif %}
|---|---|
|
{% if loop.first %}
{% endif %}
{% if row.readonly %}
{{ row.display or "—" }}
{% else %}
{% set note_id = table.name ~ "-" ~ index ~ "-" ~ row.path|replace(".", "-") ~ "-note" %}
{% set field_attrs %}aria-label="{{ row.label }}"{% if row.error %} aria-invalid="true" aria-describedby="{{ note_id }}"{% endif %}{% endset %}
{% include ["adminsite/widgets/" ~ row.widget ~ ".html", "adminsite/widgets/input.html"] %}
{% endif %}
{% if row.error %}
{{ icons.icon("alert", 14) }}{{ row.error }} {% endif %} |
{% endfor %}
{% if table.inline.can_delete %}
{% if item.key %} {#- A real box, so the removal is sent with the form; it looks like a button and dims the row it will remove. -#} {% else %} {% endif %} | {% endif %}