Beispiel #1
0
    def __init__(self):
        super(AppHeader, self).__init__()
        self.set_id(self.APP_HEADER_ID)

        # inner_wrapper = InnerWrapper()

        main_logo = Div()
        main_logo.append_class(self.APP_LOGO_CLASS)

        # inner_wrapper.append_child(main_logo)
        #inner_wrapper.append_child(contact_link)
        # self.append_child(inner_wrapper)
        self.append_child(main_logo)
        self.append_child(AppMenu())
Beispiel #2
0
    def __init__(self, input_el):
        super(SearchButton, self).__init__()
        self.append_class(self._SEARCH_BUTTON_CLASS)

        submit_button = SubmitButton(self._SUBMIT_TEXT)

        input_div = Div()
        input_div.append_child(input_el)

        input_el.set_tabindex(1)
        submit_button.set_tabindex(2)

        # Needs to be in this order for overflow: hidden in CSS
        self.append_child(submit_button)
        self.append_child(input_div)
Beispiel #3
0
    def __init__(self):
        super(RejectInstanceThanksGrid, self).__init__(self._GRID_TITLE)
        self.append_class(self._REJECT_INSTANCE_THANKS_GRID_CLASS)

        anchor_dict = {"href": RejectedTaskTestSurvey().render()}
        survey_anchor = A(anchor_dict, self._SURVEY_TEXT)

        div = Div()
        div.append_class("grid-text")
        div.append_child(survey_anchor)
        self.append_child(div)
Beispiel #4
0
    def __init__(self):
        super(ApproveInstanceThanksGrid, self).__init__(self._GRID_TITLE)
        self.append_class(self._APPROVE_INSTANCE_THANKS_GRID_CLASS)

        anchor_dict = {"href": CustomerFeedbackTestSurvey().render()}
        survey_anchor = A(anchor_dict, self._SURVEY_TEXT)

        div = Div()
        div.append_class("grid-text")
        div.append_child(survey_anchor)
        self.append_child(div)