None
@view_config(renderer="templates/form.pt", name="checkbox")
@demonstrate("Checkbox Widget")
def checkbox(self):
class Schema(colander.Schema):
want = colander.SchemaNode(
colander.Boolean(),
description="Check this box!",
widget=deform.widget.CheckboxWidget(),
title="I Want It!",
)
schema = Schema()
form = deform.Form(schema, buttons=("submit",))
return self.render_form(form)