Module: check_mk
Branch: master
Commit: 577f993623973f5d63a097cf9933ef311cfdd863
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=577f993623973f…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Nov 24 16:51:13 2015 +0100
Small refacturing needed for agent deployment
---
web/htdocs/wato.css | 10 ++++++++++
web/htdocs/wato.py | 8 ++++++--
2 files changed, 16 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/wato.css b/web/htdocs/wato.css
index f5da987..f49bebf 100644
--- a/web/htdocs/wato.css
+++ b/web/htdocs/wato.css
@@ -55,6 +55,16 @@ Boston, MA 02110-1301 USA.
background-color: #73a1b4;
}
+/* Tables renderes in forms. */
+.wato table.nform table.data {
+ box-shadow: 1px 1px 2px #444;
+}
+
+.wato table.nform table.data th {
+ background-color: #527280;
+}
+
+
.wato th.left {
border-left-style: none;
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 16f294b..2e3a405 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -9252,8 +9252,7 @@ def vs_notification_rule(userid = None):
validate = validate_notification_rule,
)
-
-def generic_rule_match_conditions():
+def simple_host_rule_match_conditions():
return [
( "match_folder",
FolderChoice(
@@ -9289,6 +9288,11 @@ def generic_rule_match_conditions():
orientation = "horizontal",
)
),
+ ]
+
+
+def generic_rule_match_conditions():
+ simple_host_rule_match_conditions() + [
( "match_servicegroups",
GroupChoice("service",
title = _("Match Service Groups"),