disqualification now with review and form
This commit is contained in:
@@ -30,6 +30,24 @@ class EmailForm(forms.Form):
|
||||
botcheck = forms.CharField(max_length=5)
|
||||
message = forms.CharField()
|
||||
|
||||
disqualificationreasons = (
|
||||
('noimage','You did not attach a monitor screenshot or other photographic evidence as required'),
|
||||
('suspicious','We doubt that you rowed this in the right boat class or type'),
|
||||
('duplicate','This result looks like a duplicate entry'),
|
||||
('other','Other Reason'),
|
||||
)
|
||||
|
||||
disqualifiers = {}
|
||||
for key, value in disqualificationreasons:
|
||||
disqualifiers[key] = value
|
||||
|
||||
class DisqualificationForm(forms.Form):
|
||||
|
||||
reason = forms.ChoiceField(required=True,
|
||||
choices=disqualificationreasons,
|
||||
widget = forms.RadioSelect,)
|
||||
|
||||
message = forms.CharField(required=True,widget=forms.Textarea)
|
||||
|
||||
class MetricsForm(forms.Form):
|
||||
avghr = forms.IntegerField(required=False,label='Average Heart Rate')
|
||||
|
||||
Reference in New Issue
Block a user