fix a bunch is settings
This commit is contained in:
16
forms.py
16
forms.py
@@ -56,4 +56,18 @@ class ConversationForm(FlaskForm):
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(ConversationForm, self).__init__(*args, **kwargs)
|
||||
self.members.choices = [(u.id, f"{u.username} {u.last_name}") for u in User.query.filter_by(is_active=True).all()]
|
||||
self.members.choices = [(u.id, f"{u.username} {u.last_name}") for u in User.query.filter_by(is_active=True).all()]
|
||||
|
||||
class CompanySettingsForm(FlaskForm):
|
||||
company_name = StringField('Company Name', validators=[Optional(), Length(max=100)])
|
||||
company_website = StringField('Website', validators=[Optional(), Length(max=200)])
|
||||
company_email = StringField('Email', validators=[Optional(), Email(), Length(max=100)])
|
||||
company_phone = StringField('Phone', validators=[Optional(), Length(max=20)])
|
||||
company_address = StringField('Address', validators=[Optional(), Length(max=200)])
|
||||
company_city = StringField('City', validators=[Optional(), Length(max=100)])
|
||||
company_state = StringField('State', validators=[Optional(), Length(max=100)])
|
||||
company_zip = StringField('ZIP Code', validators=[Optional(), Length(max=20)])
|
||||
company_country = StringField('Country', validators=[Optional(), Length(max=100)])
|
||||
company_description = TextAreaField('Description', validators=[Optional()])
|
||||
company_industry = StringField('Industry', validators=[Optional(), Length(max=100)])
|
||||
company_logo = FileField('Company Logo', validators=[FileAllowed(['jpg', 'jpeg', 'png', 'gif'], 'Images only!')])
|
||||
Reference in New Issue
Block a user