Module: check_mk
Branch: master
Commit: 1c582ff294f166c91bf3ab1bcb50df0883237569
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=1c582ff294f166…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Dec 23 12:25:29 2011 +0100
WATO: Fixed bulk edit styling
---
web/htdocs/htmllib.py | 5 +++--
web/htdocs/wato.py | 2 +-
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/web/htdocs/htmllib.py b/web/htdocs/htmllib.py
index 8d9f5e5..1572a03 100644
--- a/web/htdocs/htmllib.py
+++ b/web/htdocs/htmllib.py
@@ -919,7 +919,7 @@ class html:
omd_mode = 'own'
return (omd_mode, omd_site)
- def begin_foldable_container(self, treename, id, isopen, title, indent = True):
+ def begin_foldable_container(self, treename, id, isopen, title, indent = True, first
= False):
# try to get persistet state of tree
tree_state = weblib.get_tree_states(treename)
@@ -932,7 +932,8 @@ class html:
onclick += ' onmouseout="this.style.cursor=\'auto\';"
'
if indent == "form":
- self.write('<table id="topic_%s"
style="display:table" class="form nomargin"><tr ><td
class=title>' % id.encode("utf-8"))
+ self.write('<table id="topic_%s"
style="display:table" class="form nomargin"><tr%s><td
class=title>' % \
+ (id.encode("utf-8"), first and '
class="top"' or ''))
self.write('<img align=absbottom class="treeangle"
id="treeimg.%s.%s" '
'src="images/tree_%s.png" %s>' %
(treename, id, img_num, onclick))
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index b5f59e2..6a5ba1f 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -3787,7 +3787,7 @@ def configure_attributes(hosts, for_what, parent, myself=None,
without_attribute
html.write("</table>")
html.begin_foldable_container("wato_attributes", title,
- topic == None, title, indent =
"form")
+ topic == None, title, indent =
"form", first = topic == topics[0])
html.write('<table ')
# Mark container with host tag attributes with a special ID
if topic == _("Host tags"):