{# The single htmx swap target for every edit: canvas, inspector and validation are re-rendered together so they can never drift apart. #} {% import "partials/icons.html" as ic %} {# What the whole page is being told, in one band across it: the verdict on the document and, when an edit was refused, why. #}
{% include "partials/validation.html" %}
{% if error %}
{{ ic.icon('alert', 15) }}
That edit was not applied
{{ error }}
{% endif %} {# A map action can succeed quietly and slowly -- a clone, a fetch from CARLA -- so it says so, where a field edit does not need to. #} {% if notice %} {% with tone = 'ok', message = notice %} {% include "partials/status.html" %} {% endwith %} {% endif %}
{# `display: contents` on both, so the timeline and the inspector are items of the page grid rather than of a box inside it -- which is what lets the map panel sit beside either of them without leaving `#editor-body`. #}
{% include "partials/canvas.html" %}