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(
|
||||
"Ajouter une méthode de paiement",
|
||||
type="submit",
|
||||
className="btn btn-primary",
|
||||
className="btn btn-primary mb-3",
|
||||
),
|
||||
],
|
||||
),
|
||||
]
|
||||
)
|
||||
return html.Div(blocks)
|
||||
|
||||
if row["status"] == "trial":
|
||||
elif row["status"] == "trial":
|
||||
blocks.append(
|
||||
dbc.Alert(
|
||||
f"Essai gratuit jusqu'au {end}, puis débit automatique.", color="info"
|
||||
@@ -170,7 +168,7 @@ def _active_view(row):
|
||||
else:
|
||||
blocks.append(html.P(f"Prochain renouvellement : {end}"))
|
||||
|
||||
if row["status"] in ("trial", "active"):
|
||||
if row["status"] in ("pending", "trial", "active"):
|
||||
blocks.append(
|
||||
html.Button(
|
||||
"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"),
|
||||
],
|
||||
),
|
||||
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"),
|
||||
linkedin_button(),
|
||||
html.Hr(),
|
||||
html.Div(
|
||||
[
|
||||
dcc.Link("Créer un compte", href="/inscription"),
|
||||
html.Span(" · "),
|
||||
dcc.Link("Mot de passe oublié ?", href="/mot-de-passe-oublie"),
|
||||
]
|
||||
html.Div("ou", className="text-center text-muted my-2"),
|
||||
html.A(
|
||||
"Créer un compte avec mon adresse email",
|
||||
href="/inscription",
|
||||
className="btn btn-primary w-100",
|
||||
),
|
||||
],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user