Skip to content

Commit

Permalink
add ds movie to the form html
Browse files Browse the repository at this point in the history
  • Loading branch information
oscie57 committed Jun 3, 2024
1 parent 1695414 commit e7b2236
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions templates/movie_add.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
{{ form.movie.label(class_="label") }} {{ form.movie(size=32) }}
<br>
<br>
{{ form.dsmovie.label(class_="label") }} {{ form.dsmovie(size=32) }}
<br>
<br>
{{ form.title.label(class_="label") }} {{ form.title(class_="input") }}
<br>
<br>
Expand Down
2 changes: 1 addition & 1 deletion theunderground/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def validate_new_password(self, _):

class MovieUploadForm(FlaskForm):
movie = FileField("Movie", validators=[FileRequired()])
dsmovie = FileField("DS Movie")
dsmovie = FileField("DSi Movie")
title = StringField("Movie title", validators=[DataRequired(), Length(max=48)])
thumbnail = FileField("Movie thumbnail", validators=[FileRequired()])
# Choices for the select field are only evaluated once, so we must set it when necessary.
Expand Down

0 comments on commit e7b2236

Please sign in to comment.