Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2018-10-22 15:29:36 +02:00
parent 7b0b73b6c1
commit e97d87f2d3
7 changed files with 193 additions and 6 deletions

View File

@@ -30,7 +30,7 @@ class EmailForm(forms.Form):
botcheck = forms.CharField(max_length=5)
message = forms.CharField()
# Upload the CrewNerd Summary CSV
class CNsummaryForm(forms.Form):
@@ -105,6 +105,7 @@ from utils import (
defaultleft,defaultmiddle
)
# Form to change Workflow page layout
class WorkFlowLeftPanelForm(forms.Form):
@@ -533,6 +534,20 @@ ww = list(workouttypes)
ww.append(tuple(('all','All')))
workouttypes = tuple(ww)
class DataFrameColumnsForm(forms.Form):
cols = ['ftime','cumdist','fpace','spm',
'hr','power','driveenergy','drivelength','averageforce',
'peakforce','distance','drivespeed','workoutstate',
'catch','finish','peakforceangle','wash','slip','rhythm',
'effectiveangle','totalangle','distanceperstroke','velo']
colchoices = [
(c, c) for c in cols
]
cols = forms.MultipleChoiceField(choices=colchoices,
label='Table Columns')
# form to select modality and boat type for trend flex
class TrendFlexModalForm(forms.Form):
modality = forms.ChoiceField(choices=workouttypes,