Source code for pas.forms.legislative_period

from datetime import date
from onegov.form import Form
from onegov.pas import _
from wtforms.fields import StringField
from wtforms.fields import DateField
from wtforms.validators import InputRequired


[docs] class LegislativePeriodForm(Form):
[docs] name = StringField( label=_('Name'), validators=[InputRequired()], )
[docs] start = DateField( label=_('Start'), validators=[InputRequired()], default=date.today )
[docs] end = DateField( label=_('End'), validators=[InputRequired()], default=date.today )