예제 #1
0
파일: forms.py 프로젝트: mahdi7839/checkmk
def end() -> None:
    global g_header_open
    g_header_open = False
    section_close()
    html.tr(html.render_td('', colspan=2), class_=["bottom"])
    html.close_tbody()
    html.close_table()
예제 #2
0
    def _show_table(self, api_request):
        html.open_table(class_="allhosts")
        html.open_tbody()

        for map_cfg in api_request["maps"]:
            html.open_tr()
            html.open_td()
            html.div(
                "",
                class_=[
                    "statebullet",
                    self._state_class(map_cfg),
                    self._sub_state_class(map_cfg),
                    self._stale_class(map_cfg),
                ],
                title=self._state_title(map_cfg),
            )
            html.a(map_cfg["alias"],
                   href=map_cfg["url"],
                   class_="link",
                   target="main")
            html.close_td()
            html.close_tr()

        html.close_tbody()
        html.close_table()
예제 #3
0
파일: forms.py 프로젝트: KNGP14/checkmk
def end():
    global g_header_open
    g_header_open = False
    if g_section_open:
        html.close_td()
        html.close_tr()
    html.end_foldable_container()
    html.tr(html.render_td('', colspan=2), class_=["bottom"])
    html.close_tbody()
    html.close_table()