results filter on virtual race results
This commit is contained in:
@@ -702,7 +702,43 @@ class WorkoutSessionSelectForm(forms.Form):
|
||||
initial=workoutdata['initial'],
|
||||
widget = forms.CheckboxSelectMultiple,
|
||||
)
|
||||
|
||||
|
||||
|
||||
|
||||
class RaceResultFilterForm(forms.Form):
|
||||
sexchoices = (
|
||||
('female','Female'),
|
||||
('male','Male'),
|
||||
('mixed','Mixed'),
|
||||
)
|
||||
|
||||
weightcategories = (
|
||||
('hwt','heavy-weight'),
|
||||
('lwt','light-weight'),
|
||||
)
|
||||
|
||||
|
||||
sex = forms.MultipleChoiceField(
|
||||
choices=sexchoices,
|
||||
initial=['male','female','mixed'],
|
||||
label='Gender',
|
||||
widget=forms.CheckboxSelectMultiple())
|
||||
|
||||
boattype = forms.MultipleChoiceField(
|
||||
choices=boattypes,
|
||||
label='Boat Type',
|
||||
initial=['1x','2x','2-','4x','4-','8+'],
|
||||
widget=forms.CheckboxSelectMultiple())
|
||||
|
||||
age_min = forms.IntegerField(label='Min Age',initial=16)
|
||||
age_max = forms.IntegerField(label='Max Age',initial=100)
|
||||
|
||||
weightcategory = forms.MultipleChoiceField(
|
||||
choices=weightcategories,
|
||||
label='Weight Category',
|
||||
initial=['hwt','lwt'],
|
||||
widget=forms.CheckboxSelectMultiple())
|
||||
|
||||
class WorkoutRaceSelectForm(forms.Form):
|
||||
# evaluate_after = forms.TimeField(
|
||||
# input_formats=['%H:%M:%S.%f',
|
||||
|
||||
Reference in New Issue
Block a user