jason 2 gadi atpakaļ
vecāks
revīzija
8483cf1787

+ 2 - 2
backstage/collections/forms.py

@@ -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!')])
 
 
 '''

+ 1 - 1
backstage/templates/collections.html

@@ -154,7 +154,7 @@
                 <h4>描述</h4>
               </td>
               <td><textarea class="form-control" rows="3" id="cdescription"></textarea>
-                <div class="mt-1 text-danger">(建議字數:50 字內)</div>
+                <div class="mt-1 text-danger">(建議字數:30 字內)</div>
               </td>
             </tr>
             <tr>