Skip to content

Commit

Permalink
feat: Introduce textarea to Room Menus
Browse files Browse the repository at this point in the history
  • Loading branch information
noahpistilli committed Jul 5, 2024
1 parent 2c2f241 commit 9079bdd
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion templates/room_add_coupon.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
{{ form.movie.label(class_="label") }} {{ form.movie(size=32) }}
<br>
<br>
{{ form.title.label(class_="label") }} {{ form.title(class_="input") }}
{{ form.title.label(class_="label") }} {{ form.title(class_="textarea") }}
<br>
<br>
{{ form.tv.label(class_="label") }} {{ form.tv(size=32) }}
Expand Down
2 changes: 1 addition & 1 deletion templates/room_add_delivery.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
{{ form.movie.label(class_="label") }} {{ form.movie(size=32) }}
<br>
<br>
{{ form.title.label(class_="label") }} {{ form.title(class_="input") }}
{{ form.title.label(class_="label") }} {{ form.title(class_="textarea") }}
<br>
<br>
{{ form.tv.label(class_="label") }} {{ form.tv(size=32) }}
Expand Down
2 changes: 1 addition & 1 deletion templates/room_add_link.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
{{ form.movie.label(class_="label") }} {{ form.movie(size=32) }}
<br>
<br>
{{ form.title.label(class_="label") }} {{ form.title(class_="input") }}
{{ form.title.label(class_="label") }} {{ form.title(class_="textarea") }}
<br>
<br>
{{ form.link.label(class_="label") }} {{ form.link(class_="input") }}
Expand Down
2 changes: 1 addition & 1 deletion templates/room_add_mov.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<p>
{{ form.hidden_tag() }}
<br>
{{ form.title.label(class_="label") }} {{ form.title(class_="input") }}
{{ form.title.label(class_="label") }} {{ form.title(class_="textarea") }}
<br>
<br>
{{ form.movie_id.label(class_="label") }} {{ form.movie_id(class_="input") }}
Expand Down
2 changes: 1 addition & 1 deletion templates/room_add_pic.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</div>
</div>
<br>
{{ form.title.label(class_="label") }} {{ form.title(class_="input") }}
{{ form.title.label(class_="label") }} {{ form.title(class_="textarea") }}
<br>
<br>
{{ form.tv.label(class_="label") }} {{ form.tv(size=32) }}
Expand Down
4 changes: 2 additions & 2 deletions templates/room_add_vote.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
<p>
{{ form.hidden_tag() }}
<br>
{{ form.title.label(class_="label") }} {{ form.title(class_="input") }}
{{ form.title.label(class_="label") }} {{ form.title(class_="textarea") }}
<br>
<br>
{{ form.question.label(class_="label") }} {{ form.question(class_="input") }}
<br>
<br>
{{ form.mii_msg.label(class_="label") }} {{ form.mii_msg(class_="input") }}
{{ form.mii_msg.label(class_="label") }} {{ form.mii_msg(class_="textarea") }}
<br>
<br>
{{ form.tv.label(class_="label") }} {{ form.tv(size=32) }}
Expand Down
14 changes: 7 additions & 7 deletions theunderground/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,20 +119,20 @@ class PreRoomData(FlaskForm):

class RoomDeliveryData(FlaskForm):
movie = FileField("Movie", validators=[FileRequired()])
title = StringField("Title", validators=[DataRequired(), Length(max=47)])
title = TextAreaField("Title", validators=[DataRequired(), Length(max=47)])
tv = FileField("TV Screen Image", validators=[FileRequired()])
image = FileField("Image After Movie", validators=[FileRequired()])
upload = SubmitField("Upload")


class RoomVoteData(FlaskForm):
title = StringField("Title", validators=[DataRequired(), Length(max=47)])
title = TextAreaField("Title", validators=[DataRequired(), Length(max=47)])
tv = FileField("TV Screen Image", validators=[FileRequired()])
image1 = FileField("Answer Photo 1", validators=[FileRequired()])
image2 = FileField("Answer Photo 2", validators=[FileRequired()])
image3 = FileField("Answer Photo 3", validators=[FileRequired()])
question = StringField("Question", validators=[DataRequired(), Length(max=41)])
mii_msg = StringField("Mii Message", validators=[DataRequired(), Length(max=51)])
mii_msg = TextAreaField("Mii Message", validators=[DataRequired(), Length(max=51)])
upload = SubmitField("Upload")


Expand All @@ -141,7 +141,7 @@ class RoomMovieData(FlaskForm):
"Movie ID(Make sure you know the ID of the movie you want)",
validators=[DataRequired()],
)
title = StringField("Title", validators=[DataRequired(), Length(max=47)])
title = TextAreaField("Title", validators=[DataRequired(), Length(max=47)])
image = FileField("TV Screen Image", validators=[FileRequired()])
upload = SubmitField("Upload")

Expand All @@ -152,7 +152,7 @@ class RoomLinkData(FlaskForm):
choices=RoomContentBGMTypes.choices(),
coerce=RoomContentBGMTypes.coerce,
)
title = StringField("Title", validators=[DataRequired(), Length(max=47)])
title = TextAreaField("Title", validators=[DataRequired(), Length(max=47)])
link = StringField("Link", validators=[DataRequired(), Length(max=100)])
tv = FileField("TV Screen Image", validators=[FileRequired()])
image1 = FileField("Image After Movie", validators=[FileRequired()])
Expand All @@ -167,7 +167,7 @@ class RoomPicData(FlaskForm):
choices=RoomContentBGMTypes.choices(),
coerce=RoomContentBGMTypes.coerce,
)
title = StringField("Title", validators=[DataRequired(), Length(max=47)])
title = TextAreaField("Title", validators=[DataRequired(), Length(max=47)])
tv = FileField("TV Screen Image", validators=[FileRequired()])
image1 = FileField("Image 1", validators=[FileRequired()])
image2 = FileField("Image 2", validators=[FileRequired()])
Expand Down Expand Up @@ -239,7 +239,7 @@ class CreditsForm(FlaskForm):


class RoomCouponData(FlaskForm):
title = StringField("Title", validators=[DataRequired(), Length(max=47)])
title = TextAreaField("Title", validators=[DataRequired(), Length(max=47)])
tv = FileField("TV Screen Image", validators=[FileRequired()])
image_after = FileField("Image After Movie", validators=[FileRequired()])
movie = FileField("Movie", validators=[FileRequired()])
Expand Down

0 comments on commit 9079bdd

Please sign in to comment.