# Path: fbone/utils.py
# USERNAME_LEN_MIN = 4
# 
# USERNAME_LEN_MAX = 25


import datetime
from flask.ext.wtf import Form
from wtforms import (Field, HiddenField, TextField,
                     TextAreaField, SubmitField, DateField, SelectField)
from wtforms.validators import Required, Length, Email
from flask.ext.wtf.html5 import EmailField
from ..utils import (USERNAME_LEN_MIN, USERNAME_LEN_MAX)
            ("11.00", "(GMT +11:00) Magadan, Solomon Islands, New Caledonia"),
            ("12.00", "(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka")]
}

MESSAGE_PLACEHOLDER = """Please indicate how you would like us to contact you
 for the conversation to launch your complimentary service package: we offer
 conference calling via Webex and Go To Meeting, and telephony as well. Should
 you choose to leave your email, we will use it only for contact in this
 case."""

class SelectOptgroupField(SelectField):
    """
    Monkey-patched SelectField to make it support one-level optgroup.
    """

    # A really really dirty workaround, or we will get a "too many values to
    # unpack" error.
    def pre_validate(self, form):
        return True


class TimeRangeSliderField(Field):
    pass


class MakeAppointmentForm(Form):
    next = HiddenField()

    name = TextField(u'Name',
                     [Required(),

# Path: fbone/utils.py
# USERNAME_LEN_MIN = 4
# 
# USERNAME_LEN_MAX = 25


# Path: fbone/appointment/forms.py
import datetime
from flask.ext.wtf import Form
from wtforms import (Field, HiddenField, TextField,
                     TextAreaField, SubmitField, DateField, SelectField)
from wtforms.validators import Required, Length, Email
from flask.ext.wtf.html5 import EmailField
from ..utils import (USERNAME_LEN_MIN, USERNAME_LEN_MAX)

            ("11.00", "(GMT +11:00) Magadan, Solomon Islands, New Caledonia"),
            ("12.00", "(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka")]
}

MESSAGE_PLACEHOLDER = """Please indicate how you would like us to contact you
 for the conversation to launch your complimentary service package: we offer
 conference calling via Webex and Go To Meeting, and telephony as well. Should
 you choose to leave your email, we will use it only for contact in this
 case."""

class SelectOptgroupField(SelectField):
    """
    Monkey-patched SelectField to make it support one-level optgroup.
    """

    # A really really dirty workaround, or we will get a "too many values to
    # unpack" error.
    def pre_validate(self, form):
        return True


class TimeRangeSliderField(Field):
    pass


class MakeAppointmentForm(Form):
    next = HiddenField()

    name = TextField(u'Name',
                     [Required(),

                      Length(USERNAME_LEN_MIN, USERNAME_LEN_MAX)])