From afcee318cd699064c8d54e8ddcfc5ed33fc34ff7 Mon Sep 17 00:00:00 2001
From: Alexandre Boeglin <alex@nexedi.com>
Date: Tue, 26 Sep 2006 10:04:53 +0000
Subject: [PATCH] 2006-09-26 Alex * applied erp5_xhtml_style's patch for
 application of the css class attribute to the field title

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10321 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../portal_skins/erp5_html_style/field_render.xml             | 4 +---
 bt5/erp5_html_style/bt/change_log                             | 3 +++
 bt5/erp5_html_style/bt/revision                               | 2 +-
 3 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/bt5/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/field_render.xml b/bt5/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/field_render.xml
index 3699eec31e..923412422c 100644
--- a/bt5/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/field_render.xml
+++ b/bt5/erp5_html_style/SkinTemplateItem/portal_skins/erp5_html_style/field_render.xml
@@ -61,9 +61,7 @@
         <tal:repeat repeat="html_tuple html_render">\n
           <tr tal:attributes="title python: context.Localizer.translate(\'erp5_ui\', context.Base_getFieldDescription(field))">\n
             <td tal:content="structure python: html_tuple[0]"\n
-                tal:attributes="class python: \n
-                             {0: {0: None, 1: \'required\'},\n
-                              1: {0: \'error\', 1: \'reqerror\'}}[field_errors.has_key(field.id)][field.is_required()]"\n
+                tal:attributes="class python: \' \'.join([x for x in [\'field\', field.is_required() and \'required\' or None, field_errors.has_key(field.id) and \'error\' or None, field.get_value(\'css_class\') or None] if x is not None])"\n
                 i18n:translate="" i18n:domain="ui" />\n
             <td>\n
               <tal:block metal:use-macro="context/form_developper_buttons/macros/field"/>\n
diff --git a/bt5/erp5_html_style/bt/change_log b/bt5/erp5_html_style/bt/change_log
index 7221d6b16b..62f21a4fe1 100644
--- a/bt5/erp5_html_style/bt/change_log
+++ b/bt5/erp5_html_style/bt/change_log
@@ -1,3 +1,6 @@
+2006-09-26 Alex
+* applied erp5_xhtml_style's patch for application of the css class attribute to the field title
+
 2006-07-19 Kevin
 * Add support of HTML Report in list_mode (similar to history tab, but in list_mode).
 
diff --git a/bt5/erp5_html_style/bt/revision b/bt5/erp5_html_style/bt/revision
index f11c82a4cb..ca7bf83ac5 100644
--- a/bt5/erp5_html_style/bt/revision
+++ b/bt5/erp5_html_style/bt/revision
@@ -1 +1 @@
-9
\ No newline at end of file
+13
\ No newline at end of file
-- 
2.30.9