Private
Public Access
1
0

additional choice (upload another) on upload page

This commit is contained in:
Sander Roosendaal
2017-10-26 14:53:46 +02:00
parent 336ccb1c74
commit 704d7a9128
4 changed files with 15 additions and 6 deletions

View File

@@ -152,6 +152,11 @@ class WorkFlowMiddlePanelElement(forms.Form):
# The form to indicate additional actions to be performed immediately
# after a successful upload
nextpages = list(landingpages)
nextpages.append(('workout_upload_view','Upload Another File'))
nextpages = tuple(nextpages)
class UploadOptionsForm(forms.Form):
plotchoices = (
('timeplot','Time Plot'),
@@ -181,7 +186,7 @@ class UploadOptionsForm(forms.Form):
makeprivate = forms.BooleanField(initial=False,required=False,
label='Make Workout Private')
landingpage = forms.ChoiceField(choices=landingpages,
landingpage = forms.ChoiceField(choices=nextpages,
initial='workout_edit_view',
label='Landing Page')