{% extends 'generic/object_edit.html' %}
{% block form %}
{{ block.super }}
{# ================================================================ #}
{# Feature 6 (v0.5.0): live preview chip. #}
{# #}
{# Shows a small inline SVG below the form that updates when the #}
{# user changes position/size fields. The green dashed rectangle #}
{# shows where the proposed placement will land relative to #}
{# existing placements on the mount. #}
{# #}
{# Only renders when a mount is selected (preview_base_url is set). #}
{# Uses vanilla JS (not HTMX) to avoid content-type issues: the #}
{# SVG endpoint returns image/svg+xml which handles natively. #}
{# ================================================================ #}
{% if preview_base_url %}