Module: check_mk
Branch: master
Commit: 790467fa3a5d83c3d7dd826f82e750d18fb581ac
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=790467fa3a5d83…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Apr 18 10:22:36 2012 +0200
Better styling of aux tags
---
web/htdocs/check_mk.css | 18 ++++++++++++++++++
web/htdocs/valuespec.py | 2 +-
web/htdocs/wato.py | 8 ++++----
3 files changed, 23 insertions(+), 5 deletions(-)
diff --git a/web/htdocs/check_mk.css b/web/htdocs/check_mk.css
index 225d78a..a86abc5 100644
--- a/web/htdocs/check_mk.css
+++ b/web/htdocs/check_mk.css
@@ -220,6 +220,7 @@ b.treeangle.title {
ul.treeangle {
/* border: 1px solid #4060ff; */
padding-left: 20px;
+ margin: 8px 0px;
}
ul.treeangle li {
margin: 0px;
@@ -389,3 +390,20 @@ table.valuespec_listof td.vlof_content {
table.valuespec_listof option[selected] {
font-weight: bold;
}
+
+table.listchoice {
+ cell-spacing: 0px;
+}
+table.listchoice td span.checkbox {
+ height: 10px;
+}
+table.listchoice td {
+ height: 12px;
+ padding: 0px;
+ margin: 0px;
+}
+table.listchoice td input[type=checkbox] {
+ margin: 0px;
+ display: inline-block;
+ height: 12px;
+}
diff --git a/web/htdocs/valuespec.py b/web/htdocs/valuespec.py
index 8d35e87..ca8fd11 100644
--- a/web/htdocs/valuespec.py
+++ b/web/htdocs/valuespec.py
@@ -944,7 +944,7 @@ class ListChoice(ValueSpec):
def render_input(self, varprefix, value):
self.load_elements()
- html.write("<table>")
+ html.write("<table class=listchoice>")
for nr, (key, title) in enumerate(self._elements):
if nr % self._columns == 0:
if nr > 0:
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index b960a53..a91f7a5 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -8031,11 +8031,11 @@ def mode_edit_hosttag(phase):
size=20),
Foldable(
- MultiSelect(
+ ListChoice(
title = _("Auxiliary tags"),
- help = _("These tags will implicitely added to a host if the
"
- "user selects this entry in the tag group. Select
multiple "
- "entries with the <b>Ctrl</b>
key."),
+ # help = _("These tags will implicitely added to a host if
the "
+ # "user selects this entry in the tag group. Select
multiple "
+ # "entries with the <b>Ctrl</b>
key."),
choices = auxtags)),
],