Source code for feriennet.forms.volunteer

from onegov.feriennet import _
from onegov.form import Form
from wtforms.fields import DateField
from wtforms.fields import EmailField
from wtforms.fields import StringField
from wtforms.fields import TextAreaField
from wtforms.validators import InputRequired, Email


[docs] class VolunteerForm(Form):
[docs] first_name = StringField( label=_('First Name'), validators=[InputRequired()])
[docs] last_name = StringField( label=_('Last Name'), validators=[InputRequired()])
[docs] birth_date = DateField( label=_('Birthdate'), validators=[InputRequired()])
[docs] organisation = StringField( label=_('Organisation'))
[docs] address = TextAreaField( label=_('Address'), render_kw={'rows': 4}, validators=[InputRequired()])
[docs] zip_code = StringField( label=_('Zip Code'), validators=[InputRequired()])
[docs] place = StringField( label=_('Place'), validators=[InputRequired()])
[docs] email = EmailField( label=_('E-Mail Address'), validators=[InputRequired(), Email()])
[docs] phone = StringField( label=_('Phone'), validators=[InputRequired()])