Files
blender-cloud/cloud/forms.py

16 lines
551 B
Python
Raw Normal View History

from flask_wtf import FlaskForm
from wtforms import BooleanField, StringField
2019-05-29 16:40:29 +02:00
from wtforms.fields.html5 import URLField
from wtforms.validators import URL
from pillar.web.utils.forms import FileSelectField
class FilmProjectForm(FlaskForm):
video_url = URLField(validators=[URL()])
poster = FileSelectField('Poster Image', file_format='image')
logo = FileSelectField('Logo', file_format='image')
is_in_production = BooleanField('In Production')
is_featured = BooleanField('Featured')
theme_color = StringField('Theme Color')