Normalisation du style des boutons
This commit is contained in:
@@ -19,15 +19,6 @@
|
|||||||
- Amélioration des performances des pages acheteur et titulaire
|
- Amélioration des performances des pages acheteur et titulaire
|
||||||
- decp.info devient **colibre** : nouveau nom, nouvelles icônes ([#57](https://github.com/ColinMaudry/colibre/issues/57))
|
- decp.info devient **colibre** : nouveau nom, nouvelles icônes ([#57](https://github.com/ColinMaudry/colibre/issues/57))
|
||||||
|
|
||||||
**Bugs résolus**
|
|
||||||
|
|
||||||
- Redirection Frisbii corrigée après l'ajout d'un moyen de paiement lors du premier abonnement
|
|
||||||
- Un abonnement en échec ne bloque plus une nouvelle tentative de réabonnement
|
|
||||||
- Meilleure gestion de l'affichage d'un abonnement expiré
|
|
||||||
- Correction de l'affichage du nombre de jours d'essai restants
|
|
||||||
- Correction d'une erreur lors du renommage d'une vue sauvegardée, avec un meilleur retour visuel
|
|
||||||
- Le champ de filtrage n'apparaît plus sur la colonne "Marché" (non filtrable)
|
|
||||||
|
|
||||||
##### 2.8.1 (25 juin 2026)
|
##### 2.8.1 (25 juin 2026)
|
||||||
|
|
||||||
- Correction du bug dans la création de token d'API
|
- Correction du bug dans la création de token d'API
|
||||||
|
|||||||
@@ -118,7 +118,7 @@ def _subscribe_button(
|
|||||||
else:
|
else:
|
||||||
label, href = "Je m'abonne", "/inscription"
|
label, href = "Je m'abonne", "/inscription"
|
||||||
return html.Div(
|
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",
|
className="text-center my-4 btn-lg",
|
||||||
style={"width": "fit-content", "margin": "auto"},
|
style={"width": "fit-content", "margin": "auto"},
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -140,7 +140,7 @@ def layout(acheteur_id=None, **kwargs):
|
|||||||
html.Button(
|
html.Button(
|
||||||
"Téléchargement au format Excel",
|
"Téléchargement au format Excel",
|
||||||
id="btn-download-data-acheteur",
|
id="btn-download-data-acheteur",
|
||||||
className="btn btn-primary",
|
className="btn btn-secondary",
|
||||||
),
|
),
|
||||||
dcc.Download(id="download-data-acheteur"),
|
dcc.Download(id="download-data-acheteur"),
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ 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 mb-3",
|
className="btn btn-secondary mb-3",
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ def _submit_button(mode: str):
|
|||||||
label,
|
label,
|
||||||
id="inf-submit",
|
id="inf-submit",
|
||||||
type="submit",
|
type="submit",
|
||||||
className="btn btn-primary",
|
className="btn btn-secondary",
|
||||||
disabled=(mode == "subscribe"),
|
disabled=(mode == "subscribe"),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -52,7 +52,9 @@ def _email_section():
|
|||||||
dbc.Input(
|
dbc.Input(
|
||||||
type="email", name="email", required=True, className="mb-3"
|
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",
|
className="mb-3",
|
||||||
),
|
),
|
||||||
dbc.Button(
|
dbc.Button(
|
||||||
"Changer le mot de passe", type="submit", color="primary"
|
"Changer le mot de passe", type="submit", color="secondary"
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -208,7 +208,7 @@ def layout(**_):
|
|||||||
_csrf("mcp-create"),
|
_csrf("mcp-create"),
|
||||||
dbc.Label("Nom du jeton (ex. « Claude sur mon portable »)"),
|
dbc.Label("Nom du jeton (ex. « Claude sur mon portable »)"),
|
||||||
dbc.Input(type="text", name="label", required=True, className="mb-2"),
|
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"),
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -50,7 +50,9 @@ def _content():
|
|||||||
dbc.Input(id="vue-rename-input", type="text", autofocus=True),
|
dbc.Input(id="vue-rename-input", type="text", autofocus=True),
|
||||||
),
|
),
|
||||||
dbc.ModalFooter(
|
dbc.ModalFooter(
|
||||||
dbc.Button("Renommer", id="vue-rename-confirm", color="primary")
|
dbc.Button(
|
||||||
|
"Renommer", id="vue-rename-confirm", color="secondary"
|
||||||
|
)
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ def layout(error: str | None = None, email: str | None = None, **kwargs):
|
|||||||
required=True,
|
required=True,
|
||||||
className="mb-3",
|
className="mb-3",
|
||||||
),
|
),
|
||||||
dbc.Button("Se connecter", type="submit", color="primary"),
|
dbc.Button("Se connecter", type="submit", color="secondary"),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
dcc.Link(
|
dcc.Link(
|
||||||
@@ -95,7 +95,7 @@ def layout(error: str | None = None, email: str | None = None, **kwargs):
|
|||||||
html.A(
|
html.A(
|
||||||
"Pas encore de compte ? Voir les abonnements",
|
"Pas encore de compte ? Voir les abonnements",
|
||||||
href="/a-propos/abonnement",
|
href="/a-propos/abonnement",
|
||||||
className="btn btn-primary w-100",
|
className="btn btn-secondary w-100",
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ def layout(error: str | None = None, email: str | None = None, **_):
|
|||||||
minLength=8,
|
minLength=8,
|
||||||
className="mb-3",
|
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"),
|
html.Div("ou", className="text-center text-muted my-2"),
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ def layout(
|
|||||||
value=email or "",
|
value=email or "",
|
||||||
className="mb-3",
|
className="mb-3",
|
||||||
),
|
),
|
||||||
dbc.Button("Envoyer le lien", type="submit", color="primary"),
|
dbc.Button("Envoyer le lien", type="submit", color="secondary"),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
html.Hr(),
|
html.Hr(),
|
||||||
|
|||||||
@@ -426,9 +426,8 @@ Alors, on fait comment ?
|
|||||||
dbc.Button(
|
dbc.Button(
|
||||||
"Voir les données",
|
"Voir les données",
|
||||||
id="btn-observatoire-preview",
|
id="btn-observatoire-preview",
|
||||||
className="btn btn-primary mt-2",
|
color="secondary",
|
||||||
color="primary",
|
className="mt-2",
|
||||||
outline=True,
|
|
||||||
),
|
),
|
||||||
dcc.Input(
|
dcc.Input(
|
||||||
id="observatoire-share-url",
|
id="observatoire-share-url",
|
||||||
@@ -641,7 +640,8 @@ def sync_observatoire_share_url(*args):
|
|||||||
dbc.Button(
|
dbc.Button(
|
||||||
"Partager cette vue",
|
"Partager cette vue",
|
||||||
id="btn-copy-observatoire",
|
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.",
|
title="Copier l'adresse de cette vue filtrée pour la partager.",
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ layout = html.Div(
|
|||||||
html.Button(
|
html.Button(
|
||||||
"=>",
|
"=>",
|
||||||
id="search-button",
|
id="search-button",
|
||||||
className="btn btn-primary",
|
className="btn btn-secondary",
|
||||||
style={
|
style={
|
||||||
"border": "1px solid #ccc",
|
"border": "1px solid #ccc",
|
||||||
"borderRadius": "0 3px 3px 0",
|
"borderRadius": "0 3px 3px 0",
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ def layout(token: str | None = None, error: str | None = None, **_):
|
|||||||
minLength=8,
|
minLength=8,
|
||||||
className="mb-3",
|
className="mb-3",
|
||||||
),
|
),
|
||||||
dbc.Button("Valider", type="submit", color="primary"),
|
dbc.Button("Valider", type="submit", color="secondary"),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -394,7 +394,7 @@ layout = [
|
|||||||
dbc.Button(
|
dbc.Button(
|
||||||
"Enregistrer",
|
"Enregistrer",
|
||||||
id="btn-save-view-confirm",
|
id="btn-save-view-confirm",
|
||||||
color="primary",
|
color="secondary",
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -148,7 +148,7 @@ def layout(titulaire_id=None, **kwargs):
|
|||||||
html.Button(
|
html.Button(
|
||||||
"Téléchargement au format Excel",
|
"Téléchargement au format Excel",
|
||||||
id="btn-download-data-titulaire",
|
id="btn-download-data-titulaire",
|
||||||
className="btn btn-primary",
|
className="btn btn-secondary",
|
||||||
),
|
),
|
||||||
dcc.Download(id="download-data-titulaire"),
|
dcc.Download(id="download-data-titulaire"),
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user