{# The form posts to /ui/machines/; the existing
upsert handler creates the row with ``discovered_at=NULL``
if the MAC isn't known yet. Once the box PXE-boots,
``discovered_at`` flips to the first-seen timestamp and
the boot_policy already configured here takes effect on
that first ``GET /pxe/``. Lets operators stage a
machine + its image binding before the box is even
racked. #}
MAC is the only required field. Image binding is set per-machine on
the detail page (click the row); flash policy and per-machine boot
mode default to "local" / "none" so a freshly added machine doesn't
re-flash itself unexpectedly on first boot.
MAC
Image
Provisioning
Boot
Hostname
Last seen
Last flashed
{# The tbody subscribes to the SSE stream so it auto-updates
when the operator (or auto-discovery) mutates machines.
The browser carries the bty-token cookie automatically;
that is what authenticates the EventSource connection.
``sse-target`` opts in to the layout-level flash animation. #}
{% include "ui/_machines_tbody.html" %}