Esempio n. 1
0
 def radio(self, **kwds):
     from Input import Input
     control = Input(type="radio", **kwds)
     from FormField import FormField
     field = FormField(control)
     self.contents.append(field)
     return control
Esempio n. 2
0
 def text(self, required=False, **kwds):
     from Input import Input
     control = Input(**kwds)
     from FormField import FormField
     field = FormField(control, required)
     self.contents.append(field)
     return control
Esempio n. 3
0
 def selector(self, **kwds):
     from Selector import Selector
     control = Selector(**kwds)
     from FormField import FormField
     field = FormField(control)
     self.contents.append(field)
     return control
Esempio n. 4
0
 def checkbox(self, **kwds):
     from Checkbox import Checkbox
     control = Checkbox(**kwds)
     from FormField import FormField
     field = FormField(control)
     self.contents.append(field)
     return control
Esempio n. 5
0
 def button(self, **kwds):
     from Button import Button
     control = Button(**kwds)
     from FormField import FormField
     field = FormField(control)
     self.contents.append(field)
     return control
Esempio n. 6
0
 def textarea(self, required=False, **kwds):
     from TextArea import TextArea
     control = TextArea(**kwds)
     from FormField import FormField
     field = FormField(control, required)
     self.contents.append(field)
     return control
Esempio n. 7
0
 def register(self, name, state="ok", value=""):
     field = FormField(name, state, value)
     self._fields[name] = field
     return field
Esempio n. 8
0
 def field(self, **kwds):
     from FormField import FormField
     field = FormField(**kwds)
     self.contents.append(field)
     return field