Commit 15d75472 authored by Jérome Perrin's avatar Jérome Perrin

define CSS classes for MatrixBox:

 * MatrixContent instead of ListContent
 * matrixbox_label_line for this first line
 * matrixbox_label_column for the first column
(nothing yet for tabs)


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19721 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 67040550
...@@ -237,7 +237,7 @@ class MatrixBoxWidget(Widget.Widget): ...@@ -237,7 +237,7 @@ class MatrixBoxWidget(Widget.Widget):
header = """\ header = """\
<!-- Matrix Content --> <!-- Matrix Content -->
%s<br> %s<br>
<div class="ListContent"> <div class="MatrixContent">
<table cellpadding="0" cellspacing="0" border="0"> <table cellpadding="0" cellspacing="0" border="0">
""" % first_tab """ % first_tab
...@@ -258,7 +258,7 @@ class MatrixBoxWidget(Widget.Widget): ...@@ -258,7 +258,7 @@ class MatrixBoxWidget(Widget.Widget):
""" % len(columns) """ % len(columns)
list_header = """\ list_header = """\
<tr><td class=\"Data\"></td> <tr class="matrixbox_label_line"><td class=\"Data\"></td>
""" """
for cname in columns: for cname in columns:
...@@ -280,7 +280,7 @@ class MatrixBoxWidget(Widget.Widget): ...@@ -280,7 +280,7 @@ class MatrixBoxWidget(Widget.Widget):
td_css = 'DataA' td_css = 'DataA'
else: else:
td_css = 'DataB' td_css = 'DataB'
list_body = list_body + '\n<tr class=\"%s\"><td class=\"%s\">%s</td>' % (td_css, td_css, str(l[1])) list_body = list_body + '\n<tr class=\"%s\"><td class=\"matrixbox_label_column\">%s</td>' % (td_css, str(l[1]))
j = 0 j = 0
if render_format == 'list': if render_format == 'list':
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment