Skip to content

Commit

Permalink
FormFloating/Label only for Input then can't have one with and one wi…
Browse files Browse the repository at this point in the history
…thout
  • Loading branch information
remicousin committed Aug 3, 2023
1 parent f26af8a commit e11db1e
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions enacts/crop_suitability/layout_crop_suit.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,29 +196,30 @@ def controls_layout(lat_min, lat_max, lon_min, lon_max, lat_label, lon_label):
PickPoint(lat_min, lat_max, lat_label, lon_min, lon_max, lon_label),
width="w-auto",
),
Block("Map:",
Block("Map for a Year and a Season:",
dbc.Row(
[
dbc.Col(
dbc.FormFloating([dbc.Input(
id="target_year",
type="number",
Number(
"target_year",
CONFIG["param_defaults"]["target_year"],
min=1981,
max=CONFIG["param_defaults"]["target_year"],
value=CONFIG["param_defaults"]["target_year"],
width="6em",
),
dbc.Label("Year", style={"font-size": "80%"})]),
),
dbc.Col(
dbc.FormFloating([Select(
Select(
"target_season",
["DJF", "MAM", "JJA", "SON"],
labels=["Dec-Feb", "Mar-May", "Jun-Aug", "Sep-Nov"],
),
dbc.Label("Season", style={"font-size": "80%"})]),
),
],
class_name="g-0",
justify="start",
),
width="w-auto",
),
Block(
"Optimum seasonal total rainfall",
Expand Down

0 comments on commit e11db1e

Please sign in to comment.