You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
677 B

from flask_wtf import FlaskForm
from flask_wtf.file import FileField, FileAllowed
from wtforms import StringField, SubmitField, URLField, IntegerField, SelectField
from wtforms.validators import DataRequired, Length, Email, EqualTo, ValidationError
import minibase.blueprints.company.utils as companyUtils
class LocationForm(FlaskForm):
# Addinf custom argumets to the form filed to make it compatible with htmx, without hawing to edit the HTML fomrs.
country = SelectField('Country', validators=[DataRequired()],render_kw={"hx-get": "get_cities", "hx-target": "#city"})
city = SelectField('City', validators=[DataRequired()])
submit = SubmitField('Update')