Private
Public Access
1
0

added virtual event link

This commit is contained in:
Sander Roosendaal
2018-04-16 09:49:38 +02:00
parent ea9ef00be8
commit 2c979bf27b
5 changed files with 129 additions and 7 deletions

View File

@@ -724,8 +724,24 @@ def get_countries():
countries = tuple([(c[0],c[0]) for c in countries])
countries = countries+(('All','All'),)
return countries
class VirtualRaceSelectForm(forms.Form):
regattatypechoices = (
('upcoming','Upcoming Races'),
('ongoing','Ongoing Races'),
('previous','Previous Races'),
('my','My Races'),
('all','All Races'),
)
regattatype = forms.ChoiceField(
label='Type',
choices = regattatypechoices,
initial = 'upcoming',
)
country = forms.ChoiceField(
label='Country',
choices = get_countries()