Nettoyage HTML recherche.py
This commit is contained in:
@@ -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"}
|
||||||
|
|||||||
Reference in New Issue
Block a user