|
@ -26,8 +26,8 @@ class UploadForm(FlaskForm): |
|
|
"Name of your archive section:", |
|
|
"Name of your archive section:", |
|
|
validators=[validators.InputRequired(), Length(2, 100), _distribusiname], |
|
|
validators=[validators.InputRequired(), Length(2, 100), _distribusiname], |
|
|
) |
|
|
) |
|
|
academicyear = SelectField( |
|
|
year = SelectField( |
|
|
"Year", |
|
|
"Year:", |
|
|
validate_choice=True, |
|
|
validate_choice=True, |
|
|
coerce=str, |
|
|
coerce=str, |
|
|
choices=[ |
|
|
choices=[ |
|
@ -44,7 +44,7 @@ class UploadForm(FlaskForm): |
|
|
option_widget=None, |
|
|
option_widget=None, |
|
|
validators=[DataRequired()] |
|
|
validators=[DataRequired()] |
|
|
) |
|
|
) |
|
|
term = SelectField( |
|
|
category = SelectField( |
|
|
"Category:", |
|
|
"Category:", |
|
|
validate_choice=True, |
|
|
validate_choice=True, |
|
|
coerce=str, |
|
|
coerce=str, |
|
@ -64,20 +64,6 @@ class UploadForm(FlaskForm): |
|
|
validators=[validators.InputRequired(), Length(2, 500)], |
|
|
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( |
|
|
zipfile = FileField( |
|
|
"Upload your zip file with content here:", |
|
|
"Upload your zip file with content here:", |
|
|
validators=[ |
|
|
validators=[ |
|
|