From ad028b9e6bcb29d467ab242f597e2d61042a6175 Mon Sep 17 00:00:00 2001 From: Colin Maudry Date: Mon, 6 Jul 2026 10:49:08 +0200 Subject: [PATCH] =?UTF-8?q?R=C3=A9dactionnel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/a_propos/abonnement.py | 13 +++++++------ src/pages/compte/abonnement.py | 14 ++++---------- src/pages/compte/abonnement_mes_infos.py | 2 +- tests/users.test.sqlite | Bin 102400 -> 102400 bytes 4 files changed, 12 insertions(+), 17 deletions(-) diff --git a/src/pages/a_propos/abonnement.py b/src/pages/a_propos/abonnement.py index ddf8a1a..db8dae1 100644 --- a/src/pages/a_propos/abonnement.py +++ b/src/pages/a_propos/abonnement.py @@ -98,8 +98,8 @@ def _subscribe_button( [ dbc.Alert( "Les fonctionnalités normalement accessibles contre un abonnement " - "de 20 € HT par mois sont accessibles à tous et toutes en attendant " - "la validation de mon dossier pour recevoir des paiements.", + "mensuel sont accessibles à tous et toutes en attendant " + "la validation de mon dossier pour recevoir des paiements par carte bancaire.", color="info", ), html.A( @@ -117,8 +117,9 @@ def _subscribe_button( else: label, href = "Je m'abonne", "/inscription" return html.Div( - html.A(label, href=href, className="btn btn-primary btn-lg"), - className="text-center my-4", + html.A(label, href=href, className="btn btn-primary"), + className="text-center my-4 btn-lg", + style={"width": "fit-content", "margin": "auto"}, ) @@ -189,7 +190,7 @@ au bon fonctionnement du site et de la facturation. **Données stockées par Frisbii :** -- Informations de facturation : prénom et nom (ou nom de l'entreprise), adresse postale, code postal, ville, pays, nom de l'entreprise (ou prénom et nom) +- Informations de facturation : prénom et nom (et nom et SIRET de l'organisme si applicable), adresse postale, code postal, ville, pays - Informations de paiement : coordonnées bancaires - Historique des factures @@ -211,8 +212,8 @@ def layout(**_): body = html.Div( [ _plan_cards(), - _explainer(), _subscribe_button(authenticated, has_active, TOUS_ABONNES), + _explainer(), subscription_terms, ] ) diff --git a/src/pages/compte/abonnement.py b/src/pages/compte/abonnement.py index 9d6c628..3e7d4e4 100644 --- a/src/pages/compte/abonnement.py +++ b/src/pages/compte/abonnement.py @@ -28,20 +28,14 @@ def _price_text(meta: dict) -> str | None: return f"{ht} € HT / mois ({round(ht * 1.2, 2):g} € TTC)" -def _reabo_button(has_used_trial: bool): - label = "Me réabonner" if has_used_trial else "M'abonner" +def _reabo_button(): return html.Div( [ - html.P( - "Abonnez-vous pour accéder aux fonctionnalités réservées " + dcc.Markdown( + "[Abonnez-vous](/a-propos/abonnement) pour accéder aux fonctionnalités réservées " "aux abonné·es.", className="mb-3", ), - html.A( - label, - href="/a-propos/abonnement", - className="btn btn-primary", - ), ], className="mb-4", ) @@ -274,7 +268,7 @@ def layout(**query): "Votre abonnement a expiré.", color="warning", className="mb-4" ) ) - body.append(_reabo_button(db.has_used_trial(current_user.id))) + body.append(_reabo_button()) body.append(_salaire_modal) return account_shell("abonnement", html.Div(body)) diff --git a/src/pages/compte/abonnement_mes_infos.py b/src/pages/compte/abonnement_mes_infos.py index f6e311a..83aaed7 100644 --- a/src/pages/compte/abonnement_mes_infos.py +++ b/src/pages/compte/abonnement_mes_infos.py @@ -252,7 +252,7 @@ def layout(**query): className="mb-1", ), html.Div(id="inf-siret-msg", className="small mb-3"), - dbc.Label("Nom de l'entreprise"), + dbc.Label("Nom de l'organisme"), dbc.Input( id="inf-entreprise", name="company", diff --git a/tests/users.test.sqlite b/tests/users.test.sqlite index 9cf43084ec512ddfe02825f2f34647bd34e917c4..c4a053eeca1212e458352118e54c9cd5df4f6f73 100644 GIT binary patch delta 38 lcmZozz}B#UZGyC*I0FNNBoM=Z!9*QnM)AgktqF_^`T>b_2bTZ< delta 38 lcmZozz}B#UZGyC*00RSqBoM=Z>O>u5MuEnJtqF_^`T>XH2Yvtm