""" Project: PARTS Website Author: Edward Middleton-Smith Precision And Research Technology Systems Limited Technology: Backend Feature: Contact Us Form Description: Defines Flask-WTF form for handling user input on Contact Us page. """ # IMPORTS # internal # from business_objects.store.product_category import Filters_Product_Category # circular # from models.model_view_store import Model_View_Store # circular from forms.base import Form_Base # external from flask_wtf import FlaskForm from wtforms import StringField, TextAreaField, SubmitField, BooleanField, IntegerField, SelectField, FloatField from wtforms.validators import InputRequired, NumberRange, Regexp, DataRequired, Optional from flask_wtf.recaptcha import RecaptchaField from abc import ABCMeta, abstractmethod class Form_Contact(FlaskForm): email = StringField('Email') contact_name = StringField('Name') company_name = StringField('Company') message = TextAreaField('Message') receive_marketing = BooleanField('I would like to receive marketing emails.') recaptcha = RecaptchaField() submit = SubmitField('Send Message')