Beispiel #1
0
 def form_setup(self):
     super(HomePage, self).form_setup()
     self.top_nav_menu = container.DashboardNavMenu(self)
     self.error = element.Caption(self, css_selector='div.alert.alert-error', alias='Error Message')
     self.success = element.Caption(self, css_selector='div.alert.alert-success', alias='Success Message')
     # these are containers that will be refreshed when redirect is run for angular pages
     self.angular_containers += ['top_nav_menu', ]
Beispiel #2
0
    def controls_setup(self):
        """Admin Supervisor List Item controls"""

        self.supervisor_name = element.Link(self, css_selector='th:nth-child(1) > a',
                                            alias="Admin Supervisor Name Link")
        self.username = element.Caption(self, css_selector='td:nth-child(2)', alias="Username")
        self.email = element.Caption(self, css_selector='td:nth-child(3)', alias="Email")
        self.active_start_date = element.Link(self, css_selector='td:nth-child(4)', alias="Active Start Date Text")
        self.active_end_date = element.Link(self, css_selector='td:nth-child(5)', alias="Active End Date Text")
Beispiel #3
0
    def controls_setup(self):
        """Client List Item controls"""

        self.date_received = element.Link(self, alias="Date Received",
                                          css_selector='td:nth-child(1) > a', angular=True)
        self.job_type = element.Caption(self, alias="Job Type", css_selector='td:nth-child(2)', angular=True)
        self.description = element.Caption(self, alias="Client Name", css_selector='td:nth-child(3)', angular=True)
        self.address = element.Caption(self, alias="Address", css_selector='td:nth-child(4)', angular=True)
        self.suburb = element.Caption(self, alias="Suburb", css_selector='td:nth-child(5)', angular=True)
        self.client = element.Caption(self, alias="Client", css_selector='td:nth-child(6)', angular=True)
Beispiel #4
0
 def form_setup(self):
     super(AdminPage, self).form_setup()
     self.error = element.Caption(self, css_selector='p.alert.alert-error', alias='Error Message', angular=True)
     self.success = element.Caption(self, css_selector='p.alert.alert-success', alias='Success Message',
                                    angular=True)
     self.code_tables = container.AdminDashboardCodeTables(self)
     self.modules = container.AdminDashboardModules(self)
     self.authentication = container.AdminDashboardAuthentication(self)
     self.top_nav_menu = container.AdminDashboardNavMenu(self)
     self.left_sidebar = container.AdminDashboardLeftSidebar(self)
     self.footer = container.AdminDashboardFooter(self)
Beispiel #5
0
 def form_setup(self):
     super(AdminAddPage, self).form_setup()
     self.error = element.Caption(self, css_selector='div.alert.alert-error', alias="Error Message", angular=True)
     self.success = element.Caption(self, css_selector='div.alert.alert-success', alias="Success Message",
                                    angular=True)
     self.save = element.Button(self, css_selector='button[name="_save"]', alias="Save Button")
     self.save_and_continue = element.Button(self, css_selector='button[name="_continue"]',
                                             alias="Save And Continue Editing Button")
     self.save_add_another = element.Button(self, css_selector='button[name="_addanother"]',
                                            alias="Save And Add Another Button")
     self.active_start_date = element.TextBox(self, dom_id='id_active_start_date_0', alias="Active Start Date")
     self.active_start_time = element.TextBox(self, dom_id='id_active_start_date_1', alias="Active Start Time")
     self.active_end_date = element.TextBox(self, dom_id='id_active_end_date_0', alias="Active End Date")
     self.active_end_time = element.TextBox(self, dom_id='id_active_end_date_1', alias="Active End Time")
     self.tools = container.AdminFormTools(self)
Beispiel #6
0
 def form_setup(self):
     super(AdminListPage, self).form_setup()
     self.error = element.Caption(self, css_selector='p.alert.alert-error', alias="Error Message", angular=True)
     self.success = element.Caption(self, css_selector='.alert.alert-success', alias="Success Message",
                                    angular=True)
     self.keyword = element.InputElement(self, dom_id='searchbar', alias="Keyword")
     self.active_status = element.DropDown(self, name='active_start_date', alias="Active Status Dropdown")
     self.active_start_date = element.DropDown(self, name='active_start_date__gte',
                                               alias="Active Start Date Dropdown")
     self.active_end_date = element.DropDown(self, name='active_end_date__gte', alias="Active End Date Dropdown")
     self.search = element.Button(self, css_selector='input.submit', alias="Seatch Button")
     self.top_nav_menu = container.AdminDashboardNavMenu(self)
     self.left_sidebar = container.AdminDashboardLeftSidebar(self)
     self.footer = container.AdminDashboardFooter(self)
     self.add = element.LinkButton(self, css_selector='.object-tools > a', alias="Add Item Button")
Beispiel #7
0
    def controls_setup(self):
        """Admin Client List Item controls"""

        self.client_name = element.Link(self, css_selector='th:nth-child(1) > a', alias="Admin Client Name Link")
        self.xero_customer = element.Caption(self, css_selector='td:nth-child(2)', alias="Xero Customer")
        self.send_invoices = element.Image(self, css_selector='td:nth-child(3) img', alias="Send Invoices Check Mark")
        self.part_a_required = element.Image(self, css_selector='td:nth-child(4) img',
                                             alias="Part A Required Check Mark")
        self.they_supply_pump = element.Image(self, css_selector='td:nth-child(5) img',
                                              alias="They Supply Pump Check Mark")
        self.active_start_date = element.Link(self, css_selector='td:nth-child(6)', alias="Active Start Date Text")
        self.active_end_date = element.Link(self, css_selector='td:nth-child(6)', alias="Active End Date Text")
Beispiel #8
0
 def form_setup(self):
     super(AdminSubbieListPage, self).form_setup()
     self.subbie_name = element.Link(self, css_selector='#result_list th:nth-child(1) a',
                                     alias="Subbie Name Sort Link")
     self.type = element.Link(self, css_selector='#result_list th:nth-child(2) a', alias="Subbie Type Sort Link")
     self.has_xero = element.Caption(self, css_selector='#result_list th:nth-child(3) span', alias="Has Xero Text")
     self.username = element.Link(self, css_selector='#result_list th:nth-child(4) a', alias="Username Sort Link")
     self.email = element.Link(self, css_selector='#result_list th:nth-child(5) a', alias="Email Sort Link")
     self.active_start_date = element.Link(self, css_selector='#result_list th:nth-child(6) a',
                                           alias="Active Start Date Sort Link")
     self.active_end_date = element.Link(self, css_selector='#result_list th:nth-child(7) a',
                                         alias="Active End Date Sort Link")
     self.subbies = []
Beispiel #9
0
    def controls_setup(self):
        """OcomInputCheckBox controls"""

        super(OcomInputCheckBox, self).controls_setup()
        self.check_box = element.InputElement(self, alias="CheckBox Entry", css_selector='input', angular=True)
        self.symbol = element.Caption(self, alias="CheckBox Symbol", css_selector='.ocom-checkbox', angular=True)
Beispiel #10
0
    def controls_setup(self):
        """OcomInputNumberBox controls"""

        super(OcomInputMoneyBox, self).controls_setup()
        self.currency = element.Caption(self, alias="Currency Label", css_selector='.input-group-addon', angular=True)
Beispiel #11
0
 def controls_setup(self):
     self.label = element.Caption(self, alias="Ocom Input Label", css_selector='label', angular=True)
Beispiel #12
0
    def controls_setup(self):
        """Footer controls"""

        super(AdminDashboardFooter, self).controls_setup()
        self.version = element.Caption(self, alias="Cormack Version", css_selector='.copyright')
Beispiel #13
0
 def form_setup(self):
     super(AdminSignoutPage, self).form_setup()
     self.message = element.Caption(self, css_selector='h3.italic-title', alias='Signout Page Message', angular=True)