Private
Public Access
1
0

form in place, not working yet

This commit is contained in:
Sander Roosendaal
2018-06-11 15:26:14 +02:00
parent a6a564559c
commit 634e191d65
3 changed files with 231 additions and 171 deletions

View File

@@ -481,6 +481,20 @@ class MyTimeField(forms.TimeField):
super(MyTimeField, self).__init__(*args, **kwargs)
supports_microseconds = True
# Form used to automatically define intervals by pace or power
class PowerIntervalUpdateForm(forms.Form):
selectorchoices = (
('power','Power'),
('pace','Pace')
)
pace = forms.DurationField(label='Pace',required=False)
power = forms.IntegerField(label='Power',required=False)
selector = forms.ChoiceField(choices=selectorchoices,
required=True,
initial='power',
label='Use')
# Form used to update interval stats
class IntervalUpdateForm(forms.Form):