{# Traction search result — outside the form so the form doesn't get replaced on submit; the fragment id makes htmx swap only the result block. #}
{% if search_error %}
Search failed: {{ search_error }}
{% elif search_results is not none %} {% if not search_results %}

No hosted locos on the bus matched.

{% else %} {% for r in search_results %} {% endfor %}
AliasNode ID
{{ r.alias }} {{ r.node_id or '—' }}
{% endif %} {% endif %}