None
@view_config(
renderer="templates/form.pt", name="sequence_of_masked_textinputs"
)
@demonstrate("Sequence of Masked Text Inputs")
def sequence_of_masked_textinputs(self):
class Sequence(colander.SequenceSchema):
text = colander.SchemaNode(
colander.String(),
widget=deform.widget.TextInputWidget(mask="999-99-9999"),
)
class Schema(colander.Schema):
texts = Sequence()
schema = Schema()
form = deform.Form(schema, buttons=("submit",))
return self.render_form(form)