Enhancements
This commit is contained in:
@@ -164,8 +164,13 @@ class NtfySettingsForm(forms.ModelForm):
|
||||
class HydrationGoalForm(forms.ModelForm):
|
||||
class Meta:
|
||||
model = UserSettings
|
||||
fields = ('daily_water_goal_ml',)
|
||||
labels = {'daily_water_goal_ml': 'Daily water goal (ml)'}
|
||||
fields = ('daily_water_goal_ml', 'auto_count_food_drinks', 'include_liquid_foods',
|
||||
'show_hydration_breakdown', 'allow_manual_hydration_adjustments')
|
||||
labels = {'daily_water_goal_ml': 'Daily water goal (ml)',
|
||||
'auto_count_food_drinks': 'Automatically count drinks from Food Diary',
|
||||
'include_liquid_foods': 'Include soups and other liquid foods',
|
||||
'show_hydration_breakdown': 'Show manual and Food Diary breakdown',
|
||||
'allow_manual_hydration_adjustments': 'Allow manual hydration entries'}
|
||||
widgets = {'daily_water_goal_ml': forms.NumberInput(attrs={'min': 250, 'max': 10000, 'step': 1})}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user