Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Add label to BmiForm height field

Laszlo Ratsko9fdc2e6b3a50
diff --git a/wger/nutrition/forms.py b/wger/nutrition/forms.py
index 77468d510..27d2dc2ef 100644
--- a/wger/nutrition/forms.py
+++ b/wger/nutrition/forms.py
@@ -56,7 +56,8 @@ class UnitChooserForm(forms.Form):
class BmiForm(forms.ModelForm):
height = forms.DecimalField(widget=Html5NumberInput(),
- max_value=999)
+ max_value=999,
+ label=_('Height (cm)'))
weight = forms.DecimalField(widget=Html5NumberInput(),
max_value=999)