{# Caller may set toolbar_hx_target (e.g. "#portfolio-body") to enable HTMX-driven swaps. When absent, the toolbar falls back to a plain GET form whose period/account changes do a full page reload (preserving the prior behavior on pages like /positions that have no body fragment endpoint). #} {% if toolbar_hx_target %} {# hx-push-url is intentionally NOT "true": HTMX would push the fragment URL (toolbar_hx_get), which reload-breaks the page. /portfolio/body sets a canonical HX-Push-Url header so the address bar shows the parent URL. #}