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)
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)
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())