Private
Public Access
1
0

added boat type to upload form

This commit is contained in:
Sander Roosendaal
2018-06-01 16:18:33 +02:00
parent 4dbc08b6ba
commit c4475973f9
5 changed files with 26 additions and 4 deletions

View File

@@ -78,14 +78,19 @@ class DocumentsForm(forms.Form):
workouttype = forms.ChoiceField(required=True,
choices=Workout.workouttypes)
# initial='rower')
boattype = forms.ChoiceField(required=True,
choices=types.boattypes,
label = "Boat Type")
notes = forms.CharField(required=False,
widget=forms.Textarea)
offline = forms.BooleanField(initial=False,required=False,
label='Process in Background')
class Meta:
fields = ['title','file','workouttype','fileformat','offline']
fields = ['title','file','workouttype','boattype','fileformat','offline']
def __init__(self, *args, **kwargs):
from django.forms.widgets import HiddenInput