Module: check_mk
Branch: master
Commit: e0b6f03d23ccb7ab3ddb08e3fb71c215b5ecf2ba
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e0b6f03d23ccb7…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Sat Feb 25 21:02:39 2012 +0100
Improve editable auxiliary tags
---
web/htdocs/wato.py | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 140e8b8..8c8a91c 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -7850,20 +7850,27 @@ def mode_edit_hosttag(phase):
Tuple(
elements = [
TextAscii(
+ title = _("Tag ID"),
size=10,
regex="^[-a-z0-9A-Z_]*$",
none_is_empty = True,
regex_error = _("Invalid tag ID. Only the characters a-z, A-Z,
"
"0-9, _ and - are allowed.")),
TextUnicode(
+ title = _("Description"),
allow_empty = False,
size=20),
- ListChoice(
- choices = auxtags),
+ Foldable(
+ MultiSelect(
+ 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."),
+ choices = auxtags)),
],
- show_titles = False,
+ show_titles = True,
orientation = "horizontal"),
add_label = _("Add tag choice"),