Skip to content

Commit

Permalink
Minor changes to downtime command dialog part3
Browse files Browse the repository at this point in the history
CMK-14104

Change-Id: Iae6072ee6b5b8437b8a8eaec2595138614fa35b2
  • Loading branch information
makanakoeln committed Nov 24, 2023
1 parent b401e2e commit 3c17763
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cmk/gui/views/command/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -1377,22 +1377,26 @@ def _get_onclick(
)

def _render_advanced_options(self, what) -> None: # type: ignore[no-untyped-def]
html.open_div(class_="group")
html.open_div(class_="down_advanced")
with foldable_container(
treename="advanced_down_options",
id_="adv_down_opts",
isopen=False,
title=_("Advanced options"),
indent=False,
):
html.open_div(class_="down_advanced_option")
if what == "host":
html.open_div(class_="group")
self._vs_host_downtime().render_input("_include_children", None)
html.close_div()

html.open_div(class_="group")
self._vs_flexible_options().render_input("_down_duration", None)
html.close_div()

html.close_div()
html.close_div()

def _render_confirm_buttons(self, what) -> None: # type: ignore[no-untyped-def]
html.open_div(class_="group")
html.button("_down_host", _("Schedule downtime on host"), cssclass="hot")
Expand Down
8 changes: 8 additions & 0 deletions web/htdocs/themes/facelift/scss/_page_menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -717,6 +717,14 @@ div.page_menu_popup {
padding: 10px;
}

.down_advanced {
margin: 10px 0 10px 0;
}

.down_advanced_option {
margin-bottom: 10px;
}

input.button.duration {
margin: 0px;
border: none;
Expand Down

0 comments on commit 3c17763

Please sign in to comment.