None
@view_config(renderer="templates/form.pt", name="money_input")
@demonstrate("Money Input")
def money_input(self):
widget = deform.widget.MoneyInputWidget(options={"allowZero": True})
class Schema(colander.Schema):
greenbacks = colander.SchemaNode(
colander.Decimal(),
widget=widget,
description="Enter some money",
)
schema = Schema()
form = deform.Form(schema, buttons=("submit",))
return self.render_form(form)