Skip to content

Commit

Permalink
added min/max restraints to form field
Browse files Browse the repository at this point in the history
  • Loading branch information
josihoppe committed Nov 11, 2024
1 parent 723291c commit 95540c7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion building_dialouge_webapp/heat/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,10 @@ class RoofUsageFutureForm(forms.Form):
widget=forms.RadioSelect,
)
roof_usage_share = forms.IntegerField(
label="roof_usage_share",
label="roof_usage_share in %",
widget=forms.NumberInput(attrs={"class": "form-control"}),
max_value=100,
min_value=0,
)


Expand Down

0 comments on commit 95540c7

Please sign in to comment.