None
@view_config(renderer="templates/form.pt", name="textinput_readonly")
@demonstrate("Text Input Widget (read-only)")
def textinput_readonly(self):
class Schema(colander.Schema):
text = colander.SchemaNode(
colander.String(),
widget=deform.widget.TextInputWidget(readonly=True),
)
schema = Schema()
form = deform.Form(schema, buttons=("submit",))
return self.render_form(form, appstruct={"text": "text"})