Nettoyage HTML recherche.py

This commit is contained in:
Colin Maudry
2026-03-23 07:20:01 +01:00
parent f4514bf06c
commit 72da1a15e2
+6 -5
View File
@@ -78,7 +78,7 @@ layout = html.Div(
# className="search_options", # className="search_options",
# children=[dcc.RadioItems(options=["Acheteur(s)"])], # children=[dcc.RadioItems(options=["Acheteur(s)"])],
# ), # ),
html.Div(id="search_results"), dbc.Row(id="search_results"),
], ],
) )
@@ -110,8 +110,8 @@ def update_search_results(n_submit, n_clicks, query):
# Format output # Format output
columns, tooltip = setup_table_columns(results, hideable=False) columns, tooltip = setup_table_columns(results, hideable=False)
col_content = ( col = (
html.Div( dbc.Col(
children=[ children=[
html.H3(f"{org_type.title()}s : {count}"), html.H3(f"{org_type.title()}s : {count}"),
DataTable( DataTable(
@@ -123,12 +123,13 @@ def update_search_results(n_submit, n_clicks, query):
filter_action="none", filter_action="none",
), ),
], ],
md=6,
) )
if count > 0 if count > 0
else html.P(f"Aucun {org_type} trouvé.") else html.P(f"Aucun {org_type} trouvé.")
) )
cols.append(dbc.Col(col_content, width=6)) cols.append(col)
style = {"textAlign": "center", "display": "none"} style = {"textAlign": "center", "display": "none"}
return dbc.Row(cols), style return cols, style
return html.P(""), {"textAlign": "center"} return html.P(""), {"textAlign": "center"}