From e7b2236b8ed97372bc4c9d3f2950d805092793b6 Mon Sep 17 00:00:00 2001 From: Oscar Hudson Date: Mon, 3 Jun 2024 01:42:40 +0100 Subject: [PATCH] add ds movie to the form html --- templates/movie_add.html | 3 +++ theunderground/forms.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/templates/movie_add.html b/templates/movie_add.html index bb802e14..569ad2c5 100644 --- a/templates/movie_add.html +++ b/templates/movie_add.html @@ -11,6 +11,9 @@ {{ form.movie.label(class_="label") }} {{ form.movie(size=32) }}

+ {{ form.dsmovie.label(class_="label") }} {{ form.dsmovie(size=32) }} +
+
{{ form.title.label(class_="label") }} {{ form.title(class_="input") }}

diff --git a/theunderground/forms.py b/theunderground/forms.py index a9f65892..4c35ef76 100644 --- a/theunderground/forms.py +++ b/theunderground/forms.py @@ -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.