{% extends "layout.html" %} {% block title %}{{ record }} — {{ resource.label }} — {{ panel_title }}{% endblock %} {% block breadcrumb %} {% endblock %} {% block page_heading %}

{{ record }}

{{ resource.label }} · #{{ record_id }}

{% endblock %} {% block header_actions %} {% if resource.form_actions %} {% for action in resource.form_actions %} {% if action.get_placement() == 'header' and has_perm(resource.slug + ':action') %} {% endif %} {% endfor %} {% endif %} {% if resource.can_edit and has_perm(resource.slug + ':edit') %} Edit {% endif %} {% endblock %} {% block flash %}{% endblock %} {% block content %}
{% if flash == 'action_ok' %}
Action completed.
{% endif %} {# ── Detail description list ────────────────────────────────────── #}
{%- set _detail_fields = resource.detail_fields if resource.detail_fields else resource.form_fields %} {% if _detail_fields %} {%- set _fields = _detail_fields %} {%- set _form_cols = resource.form_cols %} {% include "partials/detail_grid.html" %} {% else %}
No fields configured.
{% endif %}
{# ── Inline form actions ────────────────────────────────────────── #} {% set inline_actions = [] %} {% for action in resource.form_actions %} {% if action.get_placement() == 'inline' and has_perm(resource.slug + ':action') %} {% set _ = inline_actions.append(action) %} {% endif %} {% endfor %} {% if inline_actions %}
Actions {% for action in inline_actions %} {% endfor %}
{% endif %}
{% endblock %}