Source code for pas.forms.parliamentary_group

from onegov.form import Form
from onegov.org.forms.fields import HtmlField
from onegov.pas import _
from wtforms.fields import DateField
from wtforms.fields import StringField
from wtforms.validators import InputRequired
from wtforms.validators import Optional


[docs] class ParliamentaryGroupForm(Form):
[docs] name = StringField( label=_('Name'), validators=[InputRequired()], )
[docs] start = DateField( label=_('Start'), validators=[Optional()], )
[docs] end = DateField( label=_('End'), validators=[Optional()], )
[docs] description = HtmlField( label=_('Description') )