From 6855cec8826e7c300e31093ec7b27027cf8fe726 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Fri, 6 Mar 2009 12:09:25 +0000
Subject: [PATCH] uses images for listbox report tree, like in domain tree

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25906 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../portal_skins/erp5_xhtml_style/ListBox_asHTML.xml        | 6 ++++--
 .../portal_skins/erp5_xhtml_style/erp5.css.xml              | 4 ++--
 product/ERP5/bootstrap/erp5_xhtml_style/bt/revision         | 2 +-
 3 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ListBox_asHTML.xml b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ListBox_asHTML.xml
index 2c3c9676c8..c61cc922c0 100644
--- a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ListBox_asHTML.xml
+++ b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ListBox_asHTML.xml
@@ -416,8 +416,10 @@
                   tal:define="section_name python: line.getDomainTitle()">\n
                   <a tal:condition="section_name"\n
                     tal:define="method_id python: line.isOpen() and \'foldReport\' or \'unfoldReport\'"\n
-                    tal:attributes="href string:${method_id}?report_url=${line/getDomainUrl}&amp;form_id=${form_id}&amp;list_selection_name=${selection_name}"\n
-                    tal:content="structure python: \'%s%s&nbsp;%s\' % (\'&nbsp;&nbsp;\' * line.getDepth(), line.isOpen() and \'-\' or \'+\', section_name)" />\n
+                    tal:attributes="href string:${method_id}?report_url=${line/getDomainUrl}&amp;form_id=${form_id}&amp;list_selection_name=${selection_name};\n
+                                    class python:test(line.isOpen(), \'tree_open\', \'tree_closed\');\n
+                                    style python:\'white-space: nowrap;; margin-left: %spx\' % (line.getDepth() * 15)"\n
+                    tal:content="section_name"/>\n
                 </td>\n
                 <td class="AnchorColumn Data" tal:condition="python:show_anchor_column and len(render_result)" style="width: 20px;">\n
                   <a href="#" tal:attributes="href python:render_result[0][4]"><img src="document_icon.gif" alt="document" tal:attributes="src string:${portal_url_string}/images/line_clickable.png" /></a>\n
diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.css.xml b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.css.xml
index 1124237e97..fffbe655c4 100644
--- a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.css.xml
+++ b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.css.xml
@@ -748,12 +748,12 @@ fieldset.bottom .field .input {\n
   float: None;\n
 }\n
 \n
-.listbox_domain_tree_table a.tree_open {\n
+a.tree_open {\n
   background: url(\'<dtml-var expr="portal_url()">/images/tree_open.png\') left no-repeat;\n
   padding-left:15px;\n
 }\n
 \n
-.listbox_domain_tree_table a.tree_closed {\n
+a.tree_closed {\n
   background: url(\'<dtml-var expr="portal_url()">/images/tree_closed.png\') left no-repeat;\n
   padding-left:15px;\n
 }\n
diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision
index d02412a497..7703a12954 100644
--- a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision
+++ b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision
@@ -1 +1 @@
-655
\ No newline at end of file
+656
\ No newline at end of file
-- 
2.30.9