{# Rendered into #import-result by htmx after POST /logixng/import-xml. Also refreshes the programs list via out-of-band swap so newly imported programs appear right away without a page reload. #} {% if error %}
Import failed: {{ error }}
{% else %}
Imported {{ imported|length }} program(s){% if warnings %}, with {{ warnings|length }} warning(s){% endif %}. {% if imported %} {% endif %} {% if warnings %}
{{ warnings|length }} warning(s)
{% endif %}
{# Out-of-band swap: refresh the programs list so the newly- imported entries show up without a full page reload. #}
{% include "_logixng_list.html" %}
{% endif %}