Enhancements

This commit is contained in:
Joren de Graaf
2026-10-11 20:46:55 +02:00
parent cb12c23732
commit 000ec834b0
26 changed files with 813 additions and 30 deletions
+7 -2
View File
@@ -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})}