2019-04-03 15:54:37 +02:00
|
|
|
from flask_wtf import FlaskForm
|
|
|
|
from wtforms import BooleanField, StringField
|
2019-05-29 16:40:29 +02:00
|
|
|
from wtforms.fields.html5 import URLField
|
2019-04-03 15:54:37 +02:00
|
|
|
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')
|