File: //home/arjun/projects/buyercall_forms/buyercall/buyercall/blueprints/phonenumbers/forms.py
import logging
from flask_wtf import FlaskForm
from wtforms import StringField, BooleanField
from wtforms.validators import Length, Optional, DataRequired
from flask_babel import lazy_gettext as _
from wtforms_components import IntegerField
class SearchForm(FlaskForm):
q = StringField(_('Search terms'), [Optional(), Length(1, 128)])
# This field gets used through the phone number_new and phone number_edit
# function for creating and editing phone number
class PhoneForm(FlaskForm):
friendly_name = StringField(_('Friendly Name for the Number:'), [DataRequired(), Length(1, 128)])