Toutes les pages s'ouvrent dans le même onglet puisque plus de perte de filtre
This commit is contained in:
@@ -375,6 +375,11 @@ button.show-hide {
|
|||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
} */
|
} */
|
||||||
|
|
||||||
|
/* Dropdowns */
|
||||||
|
.Select-placeholder {
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
|
||||||
/* Tooltips */
|
/* Tooltips */
|
||||||
.dash-tooltip,
|
.dash-tooltip,
|
||||||
.dash-table-tooltip {
|
.dash-table-tooltip {
|
||||||
|
|||||||
@@ -99,7 +99,6 @@ layout = [
|
|||||||
html.A(
|
html.A(
|
||||||
id="acheteur_lien_annuaire",
|
id="acheteur_lien_annuaire",
|
||||||
children="Plus de détails sur l'Annuaire des entreprises",
|
children="Plus de détails sur l'Annuaire des entreprises",
|
||||||
target="_blank",
|
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -99,7 +99,6 @@ layout = [
|
|||||||
html.A(
|
html.A(
|
||||||
id="titulaire_lien_annuaire",
|
id="titulaire_lien_annuaire",
|
||||||
children="Plus de détails sur l'Annuaire des entreprises",
|
children="Plus de détails sur l'Annuaire des entreprises",
|
||||||
target="_blank",
|
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|||||||
+5
-5
@@ -58,7 +58,7 @@ def add_resource_link(dff: pl.DataFrame) -> pl.DataFrame:
|
|||||||
return dff
|
return dff
|
||||||
|
|
||||||
|
|
||||||
def add_links(dff: pl.DataFrame, target: str = "_blank"):
|
def add_links(dff: pl.DataFrame):
|
||||||
for col in ["uid", "acheteur_nom", "titulaire_nom", "acheteur_id", "titulaire_id"]:
|
for col in ["uid", "acheteur_nom", "titulaire_nom", "acheteur_id", "titulaire_id"]:
|
||||||
if col in dff.columns:
|
if col in dff.columns:
|
||||||
if col.startswith("titulaire_"):
|
if col.startswith("titulaire_"):
|
||||||
@@ -72,7 +72,7 @@ def add_links(dff: pl.DataFrame, target: str = "_blank"):
|
|||||||
.then(
|
.then(
|
||||||
'<a href = "/titulaires/'
|
'<a href = "/titulaires/'
|
||||||
+ pl.col("titulaire_id")
|
+ pl.col("titulaire_id")
|
||||||
+ f'" target="{target}">'
|
+ '">'
|
||||||
+ pl.col(col)
|
+ pl.col(col)
|
||||||
+ "</a>"
|
+ "</a>"
|
||||||
)
|
)
|
||||||
@@ -84,7 +84,7 @@ def add_links(dff: pl.DataFrame, target: str = "_blank"):
|
|||||||
(
|
(
|
||||||
'<a href = "/acheteurs/'
|
'<a href = "/acheteurs/'
|
||||||
+ pl.col("acheteur_id")
|
+ pl.col("acheteur_id")
|
||||||
+ f'" target="{target}">'
|
+ '">'
|
||||||
+ pl.col(col)
|
+ pl.col(col)
|
||||||
+ "</a>"
|
+ "</a>"
|
||||||
).alias(col)
|
).alias(col)
|
||||||
@@ -94,7 +94,7 @@ def add_links(dff: pl.DataFrame, target: str = "_blank"):
|
|||||||
(
|
(
|
||||||
'<a href = "/marches/'
|
'<a href = "/marches/'
|
||||||
+ pl.col("uid")
|
+ pl.col("uid")
|
||||||
+ f'" target="{target}">'
|
+ '">'
|
||||||
+ pl.col("uid")
|
+ pl.col("uid")
|
||||||
+ "</a>"
|
+ "</a>"
|
||||||
).alias("uid")
|
).alias("uid")
|
||||||
@@ -551,7 +551,7 @@ def search_org(dff: pl.DataFrame, query: str, org_type: str) -> pl.DataFrame:
|
|||||||
)
|
)
|
||||||
|
|
||||||
# Format result
|
# Format result
|
||||||
dff = add_links(dff, target="")
|
dff = add_links(dff)
|
||||||
dff = dff.with_columns(
|
dff = dff.with_columns(
|
||||||
pl.concat_str(
|
pl.concat_str(
|
||||||
pl.col(f"{org_type}_departement_nom"),
|
pl.col(f"{org_type}_departement_nom"),
|
||||||
|
|||||||
Reference in New Issue
Block a user