{# Plan tab toolbar — sort dropdown (left) + Add target button (right). Inputs: plan_view, selected_accounts. #}
{% for a in selected_accounts %}{% endfor %} {% if plan_view.selected_tag %}{% endif %} {# Preserve pagination across sort changes — without this, switching sort resets page_size to the default. Page is intentionally not preserved because changing sort order makes the old page index meaningless. #} {% if pagination is defined and pagination.page_size %}{% endif %}