We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b30efe6 commit 6e7d8bdCopy full SHA for 6e7d8bd
wger/core/forms.py
@@ -142,6 +142,12 @@ class Meta:
142
143
def __init__(self, *args, **kwargs):
144
super(UserPreferencesForm, self).__init__(*args, **kwargs)
145
+
146
+ hattrs = self.fields['height'].widget.attrs
147
+ hattrs.setdefault('type', 'number')
148
+ hattrs.setdefault('step', '1')
149
+ hattrs['min'] = '0'
150
151
self.helper = FormHelper()
152
self.helper.form_class = 'wger-form'
153
self.helper.layout = Layout(
0 commit comments