def template(self): return tag.div[ [ tag.input(type_="hidden", name=self.name, id=self.name + "-hidden", value=""), tag.input(type_=self.type_, name=self.name, id=self.name + "-field", checked=self.value, **self.args), ] + [tag.label(for_=self.name + "-field")[self.args.get("title")]] if "title" in self.args else [] ]
def template(self): return tag.input ( type_ = self.type_, name = self.name, id = self.name + '-field', value = self.value, **self.args )
def template(self): return tag.div [[ tag.input ( type_ = self.type_, name = self.name, id = self.name + '-field', checked = self.value, **self.args )] + [ tag.label ( for_ = self.name + '-field' ) [ self.args.get('title') ] ] if 'title' in self.args else []]
def template(self): return tag.footer [ tag.menu ( id = self.name + '-footer', class_ = "buttons footer" ) [ [ tag.li ( class_ = "current" ) [ tag.input ( type = 'submit', value = self.title ) ] ] + ([ tag.li [ tag.a ( href = self.referrer ) [ "Cancel" ] ] ] if self.referrer else []) + ([ tag.div ( class_ = "fr" ) [ tag.li [ [ child(self.data) for child in self.children ] ] ] ] if self.children else []) ] ]
def template(self): return tag.div ( **self.args ) [ tag.input ( type = 'submit', name = self.name, value = self.title ) ]