HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //home/arjun/projects/buyercall_new/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)])