Module: check_mk
Branch: master
Commit: 853d1786d33e9a5aae64c920c7652471f5fda624
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=853d1786d33e9a…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu May 10 10:43:46 2012 +0200
Converted three checkboxes to label=
---
web/htdocs/wato.py | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 2c44274..d504d56 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -4226,8 +4226,8 @@ class HostTagAttribute(Attribute):
value = value + "|" + "|".join(secondary_tags)
if len(choices) == 1:
- html.checkbox(varname, value != "", cssclass = '',
onclick='wato_fix_visibility();', add_attr = ["tags=%s"%choices[0][0]])
- html.write(" " + choices[0][1])
+ html.checkbox(varname, value != "", cssclass = '',
onclick='wato_fix_visibility();',
+ add_attr = ["tags=%s"%choices[0][0]], label =
choices[0][1])
else:
html.select(varname, choices, value,
onchange='wato_fix_visibility();')
@@ -7702,8 +7702,8 @@ def mode_edit_user(phase):
html.write(_("Notifications enabled<br><i>Notifications are sent out
"
"when the status of a host or service changes.</i>"))
html.write("</td><td class=content>")
- html.checkbox("notifications_enabled",
user.get("notifications_enabled", True))
- html.write(" " + _("enable notifications"))
+ html.checkbox("notifications_enabled",
user.get("notifications_enabled", True),
+ label = _("enable notifications"))
html.write("</td></tr>")
# Notification period
@@ -7745,10 +7745,10 @@ def mode_edit_user(phase):
html.write("%s:<ul>" % title)
user_opts = user.get(what + "_notification_options", opts)
for opt in opts:
- html.checkbox(what + "_" + opt, opt in user_opts)
opt_name = notification_option_names[what].get(opt,
notification_option_names["both"].get(opt))
- html.write(" %s<br>" % opt_name)
+ html.checkbox(what + "_" + opt, opt in user_opts, label =
opt_name)
+ html.write("<br>")
html.write("</ul>")
html.write("</td></tr>")