Adaptation de l'effet de TOUS_ABONNES

This commit is contained in:
Colin Maudry
2026-07-14 12:53:01 +02:00
parent ad293acd88
commit 70ca65e962
11 changed files with 145 additions and 39 deletions
+8 -1
View File
@@ -23,10 +23,17 @@ ERROR_MESSAGES = {
def layout(error: str | None = None, email: str | None = None, **_):
from src.utils import TOUS_ABONNES
alert = None
if error and error in ERROR_MESSAGES:
alert = dbc.Alert(ERROR_MESSAGES[error], color="danger")
# Sous TOUS_ABONNES, on saute la page carte bancaire (mes-infos).
linkedin_next = (
"/compte/abonnement" if TOUS_ABONNES else "/compte/abonnement/mes-infos"
)
return dbc.Container(
className="py-4",
style={"maxWidth": "500px"},
@@ -70,7 +77,7 @@ def layout(error: str | None = None, email: str | None = None, **_):
],
),
html.Div("ou", className="text-center text-muted my-2"),
linkedin_button("/compte/abonnement/mes-infos"),
linkedin_button(linkedin_next),
html.Hr(),
dcc.Link("Déjà un compte ? Se connecter", href="/connexion"),
],