[Erp5-report] r19721 - /erp5/trunk/products/ERP5Form/MatrixBox.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Mar 6 11:38:48 CET 2008


Author: jerome
Date: Thu Mar  6 11:38:47 2008
New Revision: 19721

URL: http://svn.erp5.org?rev=19721&view=rev
Log:
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)

Modified:
    erp5/trunk/products/ERP5Form/MatrixBox.py

Modified: erp5/trunk/products/ERP5Form/MatrixBox.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Form/MatrixBox.py?rev=19721&r1=19720&r2=19721&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Form/MatrixBox.py (original)
+++ erp5/trunk/products/ERP5Form/MatrixBox.py Thu Mar  6 11:38:47 2008
@@ -237,7 +237,7 @@
           header = """\
   <!-- Matrix Content -->
   %s<br>
-  <div class="ListContent">
+  <div class="MatrixContent">
    <table cellpadding="0" cellspacing="0" border="0">
   """ % first_tab
 
@@ -258,7 +258,7 @@
   """ % len(columns)
 
           list_header = """\
-  <tr><td class=\"Data\"></td>
+  <tr class="matrixbox_label_line"><td class=\"Data\"></td>
   """
 
           for cname in columns:
@@ -280,7 +280,7 @@
               td_css = 'DataA'
             else:
               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
             
             if render_format == 'list':




More information about the Erp5-report mailing list