Пример #1
0
    def controls_setup(self):
        """DatePicker controls"""

        self.date_box = element.InputElement(self, alias="Date Box", css_selector='input.date', angular=True)
        self.set_today = element.Button(self, alias="Set Today Button", css_selector='button.today',
                                        button_type='button', angular=True)
        self.clear = element.Button(self, alias="Clear Button", css_selector='button.clear', button_type='button',
                                    angular=True)
Пример #2
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")
Пример #3
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)
Пример #4
0
    def controls_setup(self):
        """OcomInputSelectBox controls"""

        super(OcomInputSelectBox, self).controls_setup()
        self.select = element.InputElement(self, alias="SelectBox Entry", css_selector='select', angular=True)
Пример #5
0
 def controls_setup(self):
     """OcomInputNumberBox controls"""
     super(OcomInputNumberBox, self).controls_setup()
     self.number_box = element.InputElement(self, alias="NumberBox Entry", css_selector='input', angular=True)
Пример #6
0
 def controls_setup(self):
     """OcomInputTextArea controls"""
     super(OcomInputTextArea, self).controls_setup()
     self.text_box = element.InputElement(self, alias="TextArea Entry", css_selector='textarea', angular=True)
Пример #7
0
    def controls_setup(self):
        """DateTimePicker controls"""

        super(DateTimePicker, self).controls_setup()
        self.time_box = element.InputElement(self, alias="Time Box", css_selector='input.time', angular=True)