def get_display(self): outer_div = DivWdg() outer_div.set_id('import-element-eval-form') page_label = "<div>Enter the unique code of the Element Evaluation you want to import. The code will be in a " \ "format like this: ELEMENT_EVAL00001 </br>" \ "When the process finishes, a popup will tell you the new code for the imported report. Make " \ "note of this code before closing the window." outer_div.add(page_label) outer_div.add(get_label_widget('Code')) outer_div.add(get_text_input_wdg('code', 300)) outer_div.add(get_label_widget('Username')) outer_div.add(get_text_input_wdg('username', 400)) outer_div.add(get_label_widget('Password')) password_input = PasswordWdg('password') outer_div.add(password_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.set_id('new-department-request-entry-form') page_label = "<div>Fill out the following form to submit a new request. The request will be added to the " \ "department's list, and will be addressed as soon as possible. You will receive a " \ "notification when the request is complete.</div><br/>" outer_div.add(page_label) outer_div.add(get_label_widget('Name')) outer_div.add(get_text_input_wdg('name', 800)) outer_div.add(get_label_widget('Description')) outer_div.add(obu.get_text_area_input_wdg('description', 800, [('display', 'block')])) outer_div.add(get_label_widget('Due Date')) outer_div.add(get_datetime_calendar_wdg()) department_select_wdg = SelectWdg('department_select') department_select_wdg.append_option('Onboarding', 'onboarding') department_select_wdg.append_option('Edel', 'edel') department_select_wdg.append_option('Compression', 'compression') department_select_wdg.append_option('QC', 'qc') outer_div.add(get_label_widget('Department')) outer_div.add(department_select_wdg) self.get_submit_widget(outer_div) return outer_div
def get_display(self): outer_div = DivWdg() outer_div.set_id('new-department-request-entry-form') page_label = "<div>Fill out the following form to submit a new request. The request will be added to the " \ "department's list, and will be addressed as soon as possible. You will receive a " \ "notification when the request is complete.</div><br/>" outer_div.add(page_label) outer_div.add(get_label_widget('Name')) outer_div.add(get_text_input_wdg('name', 800)) outer_div.add(get_label_widget('Description')) outer_div.add( obu.get_text_area_input_wdg('description', 800, [('display', 'block')])) outer_div.add(get_label_widget('Due Date')) outer_div.add(get_datetime_calendar_wdg()) department_select_wdg = SelectWdg('department_select') department_select_wdg.append_option('Onboarding', 'onboarding') department_select_wdg.append_option('Edel', 'edel') department_select_wdg.append_option('Compression', 'compression') department_select_wdg.append_option('QC', 'qc') outer_div.add(get_label_widget('Department')) outer_div.add(department_select_wdg) self.get_submit_widget(outer_div) return outer_div
def get_display(self): div_wdg = DivWdg() div_wdg.set_id('change-order-expected-completion-date') calendar_wdg = CalendarInputWdg(name='change-expected-completion-date-calendar', width='120px') time_wdg = TimeInputWdg(name='change-expected-completion-date-time') div_wdg.add(get_label_widget('Date')) div_wdg.add(calendar_wdg) div_wdg.add(get_label_widget('Time')) div_wdg.add(time_wdg) submit_button = SubmitWdg('Submit') submit_button.add_behavior(self.submit_button_behavior()) div_wdg.add(submit_button) return div_wdg
def get_display(self): outer_div = DivWdg() outer_div.set_id('insert-package-in-order') outer_div.add(get_label_widget('Name')) outer_div.add(get_text_input_wdg('new_package_name', 400)) outer_div.add(get_platforms_checkboxes()) outer_div.add(get_label_widget('Due Date')) outer_div.add(obu.get_date_calendar_wdg()) submit_button = SubmitWdg('Submit') submit_button.add_behavior(self.get_submit_button_behavior()) outer_div.add(submit_button) return outer_div
def get_display(self): div_wdg = DivWdg() div_wdg.set_id('change-order-expected-completion-date') calendar_wdg = CalendarInputWdg( name='change-expected-completion-date-calendar', width='120px') time_wdg = TimeInputWdg(name='change-expected-completion-date-time') div_wdg.add(get_label_widget('Date')) div_wdg.add(calendar_wdg) div_wdg.add(get_label_widget('Time')) div_wdg.add(time_wdg) submit_button = SubmitWdg('Submit') submit_button.add_behavior(self.submit_button_behavior()) div_wdg.add(submit_button) return div_wdg
def get_display(self): outer_div = DivWdg() outer_div.set_id('add_new_files_to_task') outer_div.add(get_label_widget('Path')) outer_div.add(get_text_input_wdg('new_file_path', 800)) outer_div.add(get_label_widget('Classification')) outer_div.add(get_file_classification_select_wdg()) submit_button = SubmitWdg('Submit') submit_button.add_behavior(self.get_submit_button_behavior(self.task_data.get_code(), self.division.get_code(), self.order_sobject.get_code(), self.task_sobject.get_search_key())) outer_div.add(submit_button) return outer_div
def get_display(self): outer_div = DivWdg() outer_div.set_id('add_new_files_to_task') if self.division_sobject: outer_div.add(get_label_widget('Path')) outer_div.add(get_text_input_wdg('new_file_path', 800)) outer_div.add(get_label_widget('Classification')) outer_div.add(get_file_classification_select_wdg()) submit_button = SubmitWdg('Submit') submit_button.add_behavior(self.get_submit_button_behavior()) outer_div.add(submit_button) else: outer_div.add( '<div>You cannot add files to an Order until a Client Division has been selected.</div>' ) return outer_div
def get_display(self): outer_div = DivWdg() outer_div.set_id('create_instructions_document_from_template') outer_div.add(get_label_widget('Name')) outer_div.add(get_text_input_wdg('new_instructions_name', 600)) submit_button = SubmitWdg('Submit') submit_button.add_behavior(self.get_submit_button_behavior()) outer_div.add(submit_button) return outer_div
def get_display(self): outer_div = DivWdg() outer_div.set_id('department-request-response') if self.department_request_sobject.get('response'): current_response_div = DivWdg() current_response_div.add(get_pre_widget(self.department_request_sobject.get('response'))) outer_div.add(current_response_div) outer_div.add(get_label_widget('Response')) outer_div.add(get_text_area_input_wdg('response', 800, [('display', 'block')])) submit_button = SubmitWdg('Submit') submit_button.add_behavior(self.submit_button_behavior(self.department_request_sobject.get_search_key(), self.department_request_sobject.get_code())) outer_div.add(submit_button) return outer_div
def get_display(self): outer_div = DivWdg() outer_div.add_class('assign-pipeline-wdg') outer_div.add(get_label_widget('Pipeline')) pipeline_code = self.sobject.get_value('pipeline_code') # 'get_search_type' returns the full search type ('twog/component?project=twog'). Only need the first part. search_type = self.sobject.get_search_type().split('?')[0] outer_div.add(get_pipeline_select_wdg(pipeline_code, search_type)) submit_button = SubmitWdg('Submit') submit_button.add_behavior(self.get_submit_button_behavior(search_type)) outer_div.add(submit_button) return outer_div
def get_display(self): outer_div = DivWdg() outer_div.add_class('assign-pipeline-wdg') outer_div.add(get_label_widget('Pipeline')) pipeline_code = self.sobject.get_value('pipeline_code') # 'get_search_type' returns the full search type ('twog/component?project=twog'). Only need the first part. search_type = self.sobject.get_search_type().split('?')[0] outer_div.add(get_pipeline_select_wdg(pipeline_code, search_type)) submit_button = SubmitWdg('Submit') submit_button.add_behavior( self.get_submit_button_behavior(search_type)) outer_div.add(submit_button) return outer_div
def get_display(self): outer_div = DivWdg() outer_div.set_id('department-request-response') if self.department_request_sobject.get('response'): current_response_div = DivWdg() current_response_div.add( get_pre_widget( self.department_request_sobject.get('response'))) outer_div.add(current_response_div) outer_div.add(get_label_widget('Response')) outer_div.add( get_text_area_input_wdg('response', 800, [('display', 'block')])) submit_button = SubmitWdg('Submit') submit_button.add_behavior( self.submit_button_behavior( self.department_request_sobject.get_search_key(), self.department_request_sobject.get_code())) outer_div.add(submit_button) return outer_div
def get_platform_select_widget(outer_div): platform_select_wdg = obu.get_select_widget_from_search_type('twog/platform', 'platform_code', 'name', 'code') platform_select_wdg.set_id('platform_code') outer_div.add(get_label_widget('Platform')) outer_div.add(platform_select_wdg)