Module: check_mk
Branch: master
Commit: 4222729b6e43fc8bf2a81dcebc4cab32b0867625
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4222729b6e43fc…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Mar 17 08:42:42 2017 +0100
Cleaned up some hand crafted HTML code
Change-Id: I57d2354f6f2297e8c129f367619cdd654ad38163
---
web/htdocs/wato.py | 17 +++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index d7a1130..b90dceb 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -794,8 +794,9 @@ def show_hosts(folder):
# Column with actions (buttons)
if show_checkboxes:
- table.cell("<input type=button class=checkgroup
name=_toggle_group"
- " onclick=\"toggle_all_rows();\"
value=\"X\" />", sortable=False)
+ table.cell(html.render_input("_toggle_group",
type_="button",
+ class_="checkgroup",
onclick="toggle_all_rows();",
+ value='X'), sortable=False, css="checkbox")
# Use CSS class "failed" in order to provide information about
# selective toggling inventory-failed hosts for Javascript
html.input(name="_c_%s" % hostname, type_="checkbox",
value=colspan,
@@ -3306,9 +3307,9 @@ class ModeDiscovery(WatoMode):
table.cell(css="checkbox")
return
- table.cell("<input type=button class=checkgroup name=_toggle_group"
- " onclick=\"toggle_group_rows(this);\"
value=\"X\" />", sortable=False,
- css="checkbox")
+ table.cell(html.render_input("_toggle_group",
type_="button",
+ class_="checkgroup",
onclick="toggle_group_rows(this);",
+ value='X'), sortable=False, css="checkbox")
html.checkbox(self._checkbox_name(check_source,check_type, item),
True, add_attr = ['title="%s"' % _('Temporarily ignore
this service')])
@@ -10422,9 +10423,9 @@ def mode_users(phase):
table.row()
# Checkboxes
- table.cell("<input type=button class=checkgroup name=_toggle_group"
- " onclick=\"toggle_all_rows();\" value=\"%s\"
/>" % _('X'),
- sortable=False, css="buttons")
+ table.cell(html.render_input("_toggle_group",
type_="button",
+ class_="checkgroup",
onclick="toggle_all_rows();",
+ value='X'), sortable=False, css="checkbox")
if id != config.user.id:
html.checkbox("_c_user_%s" % id)