Page connexion : réorganisation et bouton inscription #90
- Mot de passe oublié déplacé sous le formulaire de connexion - Bouton "Créer un compte avec mon adresse email" en bas (btn-primary) - Bouton Me désabonner affiché aussi pour les abonnements pending Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -149,15 +149,13 @@ def _active_view(row):
|
|||||||
html.Button(
|
html.Button(
|
||||||
"Ajouter une méthode de paiement",
|
"Ajouter une méthode de paiement",
|
||||||
type="submit",
|
type="submit",
|
||||||
className="btn btn-primary",
|
className="btn btn-primary mb-3",
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
return html.Div(blocks)
|
elif row["status"] == "trial":
|
||||||
|
|
||||||
if row["status"] == "trial":
|
|
||||||
blocks.append(
|
blocks.append(
|
||||||
dbc.Alert(
|
dbc.Alert(
|
||||||
f"Essai gratuit jusqu'au {end}, puis débit automatique.", color="info"
|
f"Essai gratuit jusqu'au {end}, puis débit automatique.", color="info"
|
||||||
@@ -170,7 +168,7 @@ def _active_view(row):
|
|||||||
else:
|
else:
|
||||||
blocks.append(html.P(f"Prochain renouvellement : {end}"))
|
blocks.append(html.P(f"Prochain renouvellement : {end}"))
|
||||||
|
|
||||||
if row["status"] in ("trial", "active"):
|
if row["status"] in ("pending", "trial", "active"):
|
||||||
blocks.append(
|
blocks.append(
|
||||||
html.Button(
|
html.Button(
|
||||||
"Me désabonner",
|
"Me désabonner",
|
||||||
|
|||||||
+10
-7
@@ -81,15 +81,18 @@ def layout(error: str | None = None, email: str | None = None, **kwargs):
|
|||||||
dbc.Button("Se connecter", type="submit", color="primary"),
|
dbc.Button("Se connecter", type="submit", color="primary"),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
dcc.Link(
|
||||||
|
"Mot de passe oublié ?",
|
||||||
|
href="/mot-de-passe-oublie",
|
||||||
|
className="small d-block mt-2",
|
||||||
|
),
|
||||||
html.Div("ou", className="text-center text-muted my-2"),
|
html.Div("ou", className="text-center text-muted my-2"),
|
||||||
linkedin_button(),
|
linkedin_button(),
|
||||||
html.Hr(),
|
html.Div("ou", className="text-center text-muted my-2"),
|
||||||
html.Div(
|
html.A(
|
||||||
[
|
"Créer un compte avec mon adresse email",
|
||||||
dcc.Link("Créer un compte", href="/inscription"),
|
href="/inscription",
|
||||||
html.Span(" · "),
|
className="btn btn-primary w-100",
|
||||||
dcc.Link("Mot de passe oublié ?", href="/mot-de-passe-oublie"),
|
|
||||||
]
|
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user