{# Form body, swappable as a unit. Rendered both as the whole document (via form.html) and as the HTMX swap target on Save/Cancel/Edit. The layout's heading region owns the title / breadcrumb / subtitle; this body only carries the action buttons (which must move with the swap because they change between display/edit modes). #} {% set base = "/web/views/" ~ view.module ~ "/" ~ view.name %} {% set nav_qs = ('?' ~ list_nav_query) if list_nav_query else '' %} {% set rec_url = base ~ "/record/" ~ (record_id if record_id else 'new') ~ nav_qs %} {% set rec_edit_url = base ~ "/record/" ~ record_id ~ "/edit" ~ nav_qs if record_id else '' %} {% set show_activity = ( mode == 'display' and record_id and ( (workflow_context and workflow_context.has_workflow) or (chatter_context and chatter_context.enabled) ) ) %} {% set split_layout = show_activity and not body_only %} {% set stack_activity = show_activity and body_only %} {# HTMX body swap: keep prev/next in the layout heading (top-right). #} {% if body_only and record_pager and not in_dialog %}
Could not save:
{{ form_error }}