from scaffold.core.widget import base_widget class control(base_widget): def create(self, title, url, method='post', enctype="", button='submit', seperator=','): self.title = title self.url = url self.seperator = seperator self.method = method self.button = button self.enctype = enctype self.content = [] return self def append(self, label, name, placeholder='', value='', input_type='text'): self.content.append((label, name, value, placeholder, input_type)) return self def render(self): htm='
' return htm