{% comment %} Combined Add / Edit asset modal. Mode is driven by the parent homeApp() Alpine state (mode === 'add' | 'edit'); editAsset carries the inline JSON blob produced by the to_json filter. Layout uses the shared .modal-overlay + .modal-card pattern so the look matches the delete + reboot/shutdown prompts. Each form renders its own footer so the Save button is always inside the right
. {% endcomment %}