def get_description_input_widget(outer_div): description_input = TextAreaInputWdg() description_input.set_name('description') description_input.add_class('description') outer_div.add(get_label_widget('Description')) outer_div.add(description_input)
def get_display(self): outer_div = DivWdg() outer_div.add_class('new-title-entry-form') title_name_input = TextInputWdg() title_name_input.set_name('name') outer_div.add(get_label_widget('Name')) outer_div.add(title_name_input) episode_input = TextInputWdg() episode_input.set_name('episode') outer_div.add(get_label_widget('Episode')) outer_div.add(episode_input) description_input = TextAreaInputWdg() description_input.set_name('description') outer_div.add(get_label_widget('Description')) outer_div.add(description_input) submit_button = SubmitWdg('Submit') submit_button.add_behavior(self.submit_button_behavior()) outer_div.add(submit_button) return outer_div
def get_display(self): outer_div = DivWdg() outer_div.add_class('new-work-order-entry-form') page_label = "Work Order for {0}".format(self.title_order) outer_div.add(page_label) process_input = TextInputWdg() process_input.set_name('process') outer_div.add(get_label_widget('Process')) outer_div.add(process_input) instructions_input = TextAreaInputWdg() instructions_input.set_name('instructions') outer_div.add(get_label_widget('Instructions')) outer_div.add(instructions_input) description_input = TextAreaInputWdg() description_input.set_name('description') outer_div.add(get_label_widget('Description (Optional)')) outer_div.add(description_input) submit_button = SubmitWdg('Submit') submit_button.add_behavior(self.submit_button_behavior()) outer_div.add(submit_button) return outer_div