Switched static labels and elements out for form.url and others
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
from flask_wtf import FlaskForm
|
||||
from wtforms import URLField
|
||||
from wtforms import URLField, SubmitField, Label
|
||||
from wtforms.validators import URL, DataRequired
|
||||
|
||||
|
||||
class DownloadForm(FlaskForm):
|
||||
url = URLField('url', validators=[DataRequired(), URL()])
|
||||
url = URLField('Video, Channel or Playlist', validators=[DataRequired(), URL()], render_kw={'placeholder': 'YouTube Link'})
|
||||
submit = SubmitField('submit')
|
||||
|
||||
Reference in New Issue
Block a user