|
|
@ -26,8 +26,8 @@ class UploadForm(FlaskForm): |
|
|
|
"Name of your archive section:", |
|
|
|
validators=[validators.InputRequired(), Length(2, 100), _distribusiname], |
|
|
|
) |
|
|
|
academicyear = SelectField( |
|
|
|
"Year", |
|
|
|
year = SelectField( |
|
|
|
"Year:", |
|
|
|
validate_choice=True, |
|
|
|
coerce=str, |
|
|
|
choices=[ |
|
|
@ -44,7 +44,7 @@ class UploadForm(FlaskForm): |
|
|
|
option_widget=None, |
|
|
|
validators=[DataRequired()] |
|
|
|
) |
|
|
|
term = SelectField( |
|
|
|
category = SelectField( |
|
|
|
"Category:", |
|
|
|
validate_choice=True, |
|
|
|
coerce=str, |
|
|
@ -64,20 +64,6 @@ class UploadForm(FlaskForm): |
|
|
|
validators=[validators.InputRequired(), Length(2, 500)], |
|
|
|
) |
|
|
|
|
|
|
|
course = SelectField( |
|
|
|
u'Course:', |
|
|
|
validate_choice=True, |
|
|
|
coerce=str, |
|
|
|
choices=[ |
|
|
|
('hacking', u'Autonomous - Hacking'), |
|
|
|
('digitalcraft', u'Autonomous - Digital Craft'), |
|
|
|
('criticalstudies', u'Autonomous - Critical Studies'), |
|
|
|
('publicprivate', u'Autonomous - Public&Private'), |
|
|
|
], |
|
|
|
option_widget=None, |
|
|
|
validators=[DataRequired()] |
|
|
|
) |
|
|
|
|
|
|
|
zipfile = FileField( |
|
|
|
"Upload your zip file with content here:", |
|
|
|
validators=[ |
|
|
|