From 8969d190ae113175b1b47a47d8b19050909eadbe Mon Sep 17 00:00:00 2001
From: Ivan Tyagov <ivan@nexedi.com>
Date: Tue, 7 Sep 2010 10:35:33 +0000
Subject: [PATCH] Assign CSS class to listbox title being it a non link.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38166 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../erp5_xhtml_style/ListBox_asHTMLLibrary.xml        | 11 +++++++----
 product/ERP5/bootstrap/erp5_xhtml_style/bt/revision   |  2 +-
 2 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ListBox_asHTMLLibrary.xml b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ListBox_asHTMLLibrary.xml
index 6355351df3..c079c8667c 100644
--- a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ListBox_asHTMLLibrary.xml
+++ b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ListBox_asHTMLLibrary.xml
@@ -152,16 +152,19 @@
 \n
 <!-- Listbox title -->\n
 <div class="listbox-title"\n
-     metal:define-macro="listbox_title">\n
+     metal:define-macro="listbox_title"\n
+     tal:define="class string:${field_id}_title;">\n
 \n
   <a tal:condition="show_list_action_link"\n
-     tal:attributes="class string:${field_id}_title; \n
-                    href here/getListActionUrl">\n
+     tal:attributes="class class; \n
+                     href here/getListActionUrl">\n
     <span i18n:translate="" \n
           i18n:domain="ui" tal:content="here/getTitle" /></a>\n
   <tal:block tal:condition="not: show_list_action_link">\n
     <span i18n:translate="" \n
-          i18n:domain="ui" tal:content="here/getTitle" />\n
+          i18n:domain="ui"\n
+          tal:attributes="class class"\n
+          tal:content="here/getTitle" />\n
   </tal:block>\n
   <tal:block tal:condition="not: is_web_mode">:</tal:block>\n
 \n
diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision
index a88135ee83..40b9b19206 100644
--- a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision
+++ b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision
@@ -1 +1 @@
-988
\ No newline at end of file
+990
\ No newline at end of file
-- 
2.30.9