Source code for org.forms.person
from onegov.core.utils import ensure_scheme
from onegov.form import Form
from onegov.org import _
from wtforms.validators import InputRequired
from wtforms.fields import EmailField
from wtforms.fields import StringField
from wtforms.fields import TextAreaField
[docs]
class PersonForm(Form):
""" Form to edit people. """
[docs]
picture_url = StringField(
label=_('Picture'),
description=_('URL pointing to the picture'),
render_kw={'class_': 'image-url'}
)
[docs]
notes = TextAreaField(
label=_('Notes'),
description=_('Public extra information about this person'),
render_kw={'rows': 5}
)