|
@@ -14,7 +14,7 @@ class CollectionCreateForm(FlaskForm):
|
|
|
coverimg = FileField('封面圖片', validators=[FileRequired(), FileAllowed(['jpg', 'png', 'gif', 'webp'], 'Images only!')])
|
|
|
bannerimgtext = StringField('封面圖片說明', validators=[DataRequired()])
|
|
|
homeowner = StringField('屋主', validators=[DataRequired()])
|
|
|
- ownerimg = FileField('屋主照片', validators=[FileRequired(), FileAllowed(['jpg', 'png', 'gif', 'webp'], 'Images only!')])
|
|
|
+ ownerimg = FileField('屋主照片', validators=[FileAllowed(['jpg', 'png', 'gif', 'webp'], 'Images only!')])
|
|
|
size = SelectField('坪數範圍', choices=['20坪以下', '20-35坪', '35-50坪', '50坪以上'],validators=[DataRequired()])
|
|
|
housesize = StringField('坪數', validators=[DataRequired()])
|
|
|
bednum = SelectField('格局', choices=['一房', '二房', '三房', '四房', '四房以上'],validators=[DataRequired()])
|
|
@@ -28,7 +28,7 @@ class CollectionCreateForm(FlaskForm):
|
|
|
construction = StringField('建案名稱', validators=[DataRequired()])
|
|
|
collectiondesc = TextAreaField('作品集描述', validators=[DataRequired()])
|
|
|
# collectionslider = MultipleFileField('作品集圖片集', validators=[FileRequired(), FileAllowed(['jpg', 'png', 'gif', 'webp'], 'Images only!')])
|
|
|
- comment = FileField('Comment', validators=[FileRequired(), FileAllowed(['jpg', 'png', 'gif', 'webp'], 'Images only!')])
|
|
|
+ comment = FileField('Comment', validators=[FileAllowed(['jpg', 'png', 'gif', 'webp'], 'Images only!')])
|
|
|
|
|
|
|
|
|
'''
|