Commit 2f458207 authored by Romain Courteaud's avatar Romain Courteaud

ERP5Form: Matrixbox: drop deprecated attributes

Drop usage of cellpadding, cellspacing, border.
parent 8a0f80fa
...@@ -1056,6 +1056,7 @@ div.search .searchPages .selected{ ...@@ -1056,6 +1056,7 @@ div.search .searchPages .selected{
border-bottom-width: 1px; border-bottom-width: 1px;
border-left-width: 1px; border-left-width: 1px;
border-right-width: 1px; border-right-width: 1px;
border-spacing: 1px;
} }
.MatrixContent tr.matrixbox_label_line { .MatrixContent tr.matrixbox_label_line {
...@@ -1095,6 +1096,7 @@ div.search .searchPages .selected{ ...@@ -1095,6 +1096,7 @@ div.search .searchPages .selected{
border-bottom-width: 0; border-bottom-width: 0;
border-left-width: 1px; border-left-width: 1px;
border-right-width: 1px; border-right-width: 1px;
padding: 0;
padding-left: 1px; padding-left: 1px;
padding-right: 1px; padding-right: 1px;
} }
...@@ -1105,6 +1107,8 @@ div.search .searchPages .selected{ ...@@ -1105,6 +1107,8 @@ div.search .searchPages .selected{
.MatrixContent td.footer { .MatrixContent td.footer {
width: 100pt; width: 100pt;
vertical-align: middle;
text-align: center;
} }
......
...@@ -303,14 +303,14 @@ class MatrixBoxWidget(Widget.Widget): ...@@ -303,14 +303,14 @@ class MatrixBoxWidget(Widget.Widget):
<!-- Matrix Content --> <!-- Matrix Content -->
<div class="matrixbox_label_tab">%s</div> <div class="matrixbox_label_tab">%s</div>
<div class="MatrixContent"> <div class="MatrixContent">
<table cellpadding="0" cellspacing="0" border="0"> <table>
""" % (first_tab+extra_dimension_label) """ % (first_tab+extra_dimension_label)
# Create the footer. This should be replaced by DTML # Create the footer. This should be replaced by DTML
# And work as some kind of parameter # And work as some kind of parameter
footer = """\ footer = """\
<tr> <tr>
<td colspan="%s" align="center" valign="middle" <td colspan="%s"
class="Data footer"> class="Data footer">
</td> </td>
</tr> </tr>
......
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