{% comment %} Amazee.ai settings page (Django port of resources/views/amazee-settings.blade.php). Multi-step Alpine.js UI for the Amazee.ai connection flow: - start: email input + "Start trial" / "Sign in" buttons - verification: code input - region: region selection list - connected: status display + disconnect button The flow is stateless on the server: the short-lived session token returned by sign-in is held client-side and passed back to /regions and /upgrade. The server-rendered `step` provides the initial state without an extra round-trip. {% endcomment %} {{ routes|json_script:"amazee-routes" }}
{# Re-authentication needed: the stored Amazee.ai credentials are no longer accepted. Rendered server-side so it is present on first load, and hidden client-side once a reconnect succeeds. The CTA runs the existing email-verification sign-in flow. #} {% if upgrade_needed %} {% endif %} {# Connected #} {# Provider already configured — Amazee.ai not needed #} {# Start: email + trial/sign-in #} {# Verification code #} {# Region selection #}