Big commit i'm sorry ...
This commit is contained in:
12
app/forms.py
12
app/forms.py
@@ -7,14 +7,15 @@ from wtforms import validators
|
||||
from wtforms.validators import DataRequired, Length
|
||||
|
||||
class FormBloc(FlaskForm):
|
||||
title = StringField('Titre', validators=[DataRequired()])
|
||||
name = StringField('Nom du bloc', validators=[DataRequired()])
|
||||
title = StringField('Titre', validators=[])
|
||||
subtitle = StringField('Sous-titre', validators=[])
|
||||
property = StringField('Classes CSS', validators=[])
|
||||
bg_color = ColorField('Couleur de fond', validators=[])
|
||||
fg_color = ColorField('Couleur du texte', validators=[])
|
||||
text = TextAreaField('Présentation', validators=[Length(min=0, max=1000)])
|
||||
text = TextAreaField('Présentation', validators=[Length(min=0, max=30000)])
|
||||
text_button = StringField('Texte du bouton', validators=[])
|
||||
link = StringField('Lien', validators=[])
|
||||
image = FileField('image', validators=[FileAllowed(['jpg', 'png', 'gif'], 'Images only!')])
|
||||
image = FileField('image', validators=[FileAllowed(['jpg','jpeg','png'])])
|
||||
email = StringField('Email', validators=[])
|
||||
phone = StringField('Téléphone', validators=[])
|
||||
address = StringField('Addresse', validators=[])
|
||||
@@ -35,8 +36,7 @@ class ImageUpload(FlaskForm):
|
||||
subtitle = StringField('Sous-titre',validators=[])
|
||||
text = StringField('Une description de votre image', validators=[])
|
||||
category = StringField('Categories',validators=[])
|
||||
image = FileField('image', validators=[FileRequired(),
|
||||
FileAllowed(['jpg', 'png', 'gif'], 'Images only!')])
|
||||
image = FileField('image', validators=[FileAllowed(['jpg', 'png', 'gif'], 'Images only!')])
|
||||
|
||||
class Login(FlaskForm):
|
||||
login = StringField('Votre identifiant', validators=[DataRequired()])
|
||||
|
||||
Reference in New Issue
Block a user