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:
Colin Maudry
2026-06-29 16:14:43 +02:00
parent 8cd5bfe821
commit db148eef90
2 changed files with 13 additions and 12 deletions
+3 -5
View File
@@ -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",