export forms with workout types
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user