Private
Public Access
1
0

export forms with workout types

This commit is contained in:
2026-03-13 13:08:58 +01:00
parent 734fbfe133
commit 59d40dd95d
5 changed files with 20 additions and 9 deletions

View File

@@ -821,6 +821,15 @@ class DateRangeForm(forms.Form):
'autoclose': True,
}
# same as above but has check boxes for workout types to show in the selected date range
class DateRangeWorkoutTypeForm(DateRangeForm):
typeselectchoices = [("All", "All")]
for wtype, verbose in mytypes.workouttypes_ordered.items():
typeselectchoices.append((wtype, verbose))
workouttype = forms.ChoiceField(initial='All', choices=typeselectchoices)
class FitnessMetricForm(forms.Form):
startdate = forms.DateField(