{# Add-to-queue form. Reused by /dashboard and /queue — the only difference between the two callers is the HTMX swap target, which the parent template sets via `{% set swap_target = "#…-body" %}` before including this partial. POST goes to /sources/add either way; the route inspects HX-Current-URL to pick the right body partial in its response. #}

Add to queue

video on a known host (YouTube / Vimeo) → tower; otherwise treated as an article. YouTube /playlist?list=… fans out.

{% if add_flash %}
✓ {{ add_flash }}
{% endif %} {% if add_error %}
✗ {{ add_error }}
{% endif %}