Source code for org.forms.imageset

from onegov.form import Form
from onegov.org import _
from wtforms.fields import BooleanField
from wtforms.fields import RadioField
from wtforms.fields import StringField
from wtforms.fields import TextAreaField
from wtforms.validators import InputRequired


[docs] class ImageSetForm(Form):
[docs] title = StringField(_('Title'), [InputRequired()])
[docs] lead = TextAreaField( label=_('Lead'), description=_('Describes what this photo album is about'), render_kw={'rows': 4})
[docs] view = RadioField( label=_('View'), default='full', choices=[ ('full', _('Full size images')), ('grid', _('Grid layout')) ])
[docs] show_images_on_homepage = BooleanField( label=_('Show images on homepage'))