{% load static %}
{% load i18n %}
{% comment %}
Login page SPA — overlay shell.
Injected at the end of
when AA_CUSTOMIZER.login_spa_enabled is True.
Page content is read from
elements inside #aac-spa-content, which the user provides via the
"Login Page — Extra Body HTML" admin field. The plugin automatically wraps
the field value in
, so you
do NOT need display:none on your own wrapper div. Example:
JavaScript hooks (listen on document):
aac-spa-route-change — fires after each route is rendered
detail: { route: "slug" }
aac-spa-signin — fires when the overlay hides for the login card
Global API:
window.AAC_SPA.routes — array of route slugs in order
window.AAC_SPA.nav(slug) — navigate to a named route (re-shows overlay)
{% endcomment %}