{% import "_macros.html" as cells with context %} {# One table row. Carries an id so a saved record can replace it out of band, and the request that opens it when the spec renders a detail route. #} {% if spec.selectable %} {# Named pk, repeated: the bulk routes read a list of keys. #} {% endif %} {% for column in spec.list_columns %}{{ cells.cell(spec, row, column, labels | default({}), admin_path, registry) }}{% endfor %} {% if spec.row_actions %} {% for action in spec.row_actions %} {% if action.method == "post" %} {% if action.confirm %}
{{ action.label }}

{{ action.label }} record {{ row[pk_name] }}?

{% else %}
{% endif %} {% else %} {{ action.label }} {% endif %} {% endfor %} {% endif %}