Normalisation du style des boutons

This commit is contained in:
Colin Maudry
2026-07-13 23:24:27 +02:00
parent 34f10f2283
commit a225dbb0ef
16 changed files with 24 additions and 29 deletions
+1 -1
View File
@@ -118,7 +118,7 @@ def _subscribe_button(
else:
label, href = "Je m'abonne", "/inscription"
return html.Div(
html.A(label, href=href, className="btn btn-primary"),
html.A(label, href=href, className="btn btn-secondary"),
className="text-center my-4 btn-lg",
style={"width": "fit-content", "margin": "auto"},
)
+1 -1
View File
@@ -140,7 +140,7 @@ def layout(acheteur_id=None, **kwargs):
html.Button(
"Téléchargement au format Excel",
id="btn-download-data-acheteur",
className="btn btn-primary",
className="btn btn-secondary",
),
dcc.Download(id="download-data-acheteur"),
],
+1 -1
View File
@@ -66,7 +66,7 @@ def _active_view(row):
html.Button(
"Ajouter une méthode de paiement",
type="submit",
className="btn btn-primary mb-3",
className="btn btn-secondary mb-3",
),
],
),
+1 -1
View File
@@ -49,7 +49,7 @@ def _submit_button(mode: str):
label,
id="inf-submit",
type="submit",
className="btn btn-primary",
className="btn btn-secondary",
disabled=(mode == "subscribe"),
)
+4 -2
View File
@@ -52,7 +52,9 @@ def _email_section():
dbc.Input(
type="email", name="email", required=True, className="mb-3"
),
dbc.Button("Mettre à jour l'email", type="submit", color="primary"),
dbc.Button(
"Mettre à jour l'email", type="submit", color="secondary"
),
],
),
]
@@ -92,7 +94,7 @@ def _password_section():
className="mb-3",
),
dbc.Button(
"Changer le mot de passe", type="submit", color="primary"
"Changer le mot de passe", type="submit", color="secondary"
),
],
),
+1 -1
View File
@@ -208,7 +208,7 @@ def layout(**_):
_csrf("mcp-create"),
dbc.Label("Nom du jeton (ex. « Claude sur mon portable »)"),
dbc.Input(type="text", name="label", required=True, className="mb-2"),
dbc.Button("Générer un jeton", type="submit", color="primary"),
dbc.Button("Générer un jeton", type="submit", color="secondary"),
],
)
+3 -1
View File
@@ -50,7 +50,9 @@ def _content():
dbc.Input(id="vue-rename-input", type="text", autofocus=True),
),
dbc.ModalFooter(
dbc.Button("Renommer", id="vue-rename-confirm", color="primary")
dbc.Button(
"Renommer", id="vue-rename-confirm", color="secondary"
)
),
],
),
+2 -2
View File
@@ -81,7 +81,7 @@ def layout(error: str | None = None, email: str | None = None, **kwargs):
required=True,
className="mb-3",
),
dbc.Button("Se connecter", type="submit", color="primary"),
dbc.Button("Se connecter", type="submit", color="secondary"),
],
),
dcc.Link(
@@ -95,7 +95,7 @@ def layout(error: str | None = None, email: str | None = None, **kwargs):
html.A(
"Pas encore de compte ? Voir les abonnements",
href="/a-propos/abonnement",
className="btn btn-primary w-100",
className="btn btn-secondary w-100",
),
],
)
+1 -1
View File
@@ -66,7 +66,7 @@ def layout(error: str | None = None, email: str | None = None, **_):
minLength=8,
className="mb-3",
),
dbc.Button("Créer le compte", type="submit", color="primary"),
dbc.Button("Créer le compte", type="submit", color="secondary"),
],
),
html.Div("ou", className="text-center text-muted my-2"),
+1 -1
View File
@@ -58,7 +58,7 @@ def layout(
value=email or "",
className="mb-3",
),
dbc.Button("Envoyer le lien", type="submit", color="primary"),
dbc.Button("Envoyer le lien", type="submit", color="secondary"),
],
),
html.Hr(),
+4 -4
View File
@@ -426,9 +426,8 @@ Alors, on fait comment ?
dbc.Button(
"Voir les données",
id="btn-observatoire-preview",
className="btn btn-primary mt-2",
color="primary",
outline=True,
color="secondary",
className="mt-2",
),
dcc.Input(
id="observatoire-share-url",
@@ -641,7 +640,8 @@ def sync_observatoire_share_url(*args):
dbc.Button(
"Partager cette vue",
id="btn-copy-observatoire",
className="btn btn-primary mt-2",
color="secondary",
className="mt-2",
title="Copier l'adresse de cette vue filtrée pour la partager.",
)
],
+1 -1
View File
@@ -53,7 +53,7 @@ layout = html.Div(
html.Button(
"=>",
id="search-button",
className="btn btn-primary",
className="btn btn-secondary",
style={
"border": "1px solid #ccc",
"borderRadius": "0 3px 3px 0",
+1 -1
View File
@@ -68,7 +68,7 @@ def layout(token: str | None = None, error: str | None = None, **_):
minLength=8,
className="mb-3",
),
dbc.Button("Valider", type="submit", color="primary"),
dbc.Button("Valider", type="submit", color="secondary"),
],
),
],
+1 -1
View File
@@ -394,7 +394,7 @@ layout = [
dbc.Button(
"Enregistrer",
id="btn-save-view-confirm",
color="primary",
color="secondary",
)
),
],
+1 -1
View File
@@ -148,7 +148,7 @@ def layout(titulaire_id=None, **kwargs):
html.Button(
"Téléchargement au format Excel",
id="btn-download-data-titulaire",
className="btn btn-primary",
className="btn btn-secondary",
),
dcc.Download(id="download-data-titulaire"),
],