Required fields for application form
This commit is contained in:
@@ -14,16 +14,16 @@ from wtforms.validators import url
|
|||||||
|
|
||||||
|
|
||||||
class ApplicationForm(Form):
|
class ApplicationForm(Form):
|
||||||
network_profile = TextField('Blender Network Profile', validators=[DataRequired()])
|
network_profile = TextField('Blender Network Profile')
|
||||||
website = URLField(validators=[url()])
|
website = URLField(validators=[url(), DataRequired()])
|
||||||
city_country = TextField('City and Country', validators=[DataRequired()])
|
city_country = TextField('City and Country', validators=[DataRequired()])
|
||||||
teaching = BooleanField('Teaching')
|
teaching = BooleanField('Teaching')
|
||||||
institution_name = TextField('School or institution name')
|
institution_name = TextField('School or institution name')
|
||||||
skills = SelectMultipleField('Areas of expertise', coerce=int)
|
skills = SelectMultipleField('Areas of expertise', coerce=int)
|
||||||
video_example = URLField(validators=[url()])
|
video_example = URLField(validators=[url(), DataRequired()])
|
||||||
written_example = URLField(validators=[url()])
|
written_example = URLField(validators=[url(), DataRequired()])
|
||||||
portfolio_cv = URLField(validators=[url()])
|
portfolio_cv = URLField(validators=[url(), DataRequired()])
|
||||||
bio_message = TextAreaField('Your message for the board')
|
bio_message = TextAreaField('Your message for the board', validators=[DataRequired()])
|
||||||
|
|
||||||
|
|
||||||
# Views
|
# Views
|
||||||
|
Reference in New Issue
Block a user