From 5c27486c5ec37c17634917966fb87be1e74ea76b Mon Sep 17 00:00:00 2001
From: Fabien Morin <fabien@nexedi.com>
Date: Mon, 1 Feb 2010 15:47:37 +0000
Subject: [PATCH] 2010-02-01 fabien * don't display action buttons (like
 copy/paste, ...) in dialog_mode

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32154 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../portal_skins/erp5_xhtml_style/ListBox_asHTML.xml           | 1 +
 .../portal_skins/erp5_xhtml_style/ListBox_asTableStyleHTML.xml | 2 +-
 product/ERP5/bootstrap/erp5_xhtml_style/bt/change_log          | 3 +++
 product/ERP5/bootstrap/erp5_xhtml_style/bt/revision            | 2 +-
 4 files changed, 6 insertions(+), 2 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 71c8b6f957..aec26338f1 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
@@ -61,6 +61,7 @@
               show_anchor_column here/showAnchorColumn;\n
               show_search_line here/showSearchLine;\n
               is_web_mode request/is_web_mode | nothing;\n
+              is_dialog_mode request/dialog_mode | nothing;\n
               list_style python:request.get(\'list_style\', \n
                 selection.getParams().get(\'list_style\', is_web_mode and \'table\' or None));\n
               is_gadget_mode request/is_gadget_mode | nothing;\n
diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ListBox_asTableStyleHTML.xml b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ListBox_asTableStyleHTML.xml
index 1219287815..d87d25ef1c 100644
--- a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ListBox_asTableStyleHTML.xml
+++ b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ListBox_asTableStyleHTML.xml
@@ -336,7 +336,7 @@
 \n
           <!-- Copy / Paste buttons -->\n
           <div class="bottom_actions" \n
-               tal:condition="python:not is_gadget_mode and show_select_column">\n
+               tal:condition="python:not is_gadget_mode and show_select_column and not is_dialog_mode">\n
 \n
             <button type="submit" class="cut_button" title="Cut"\n
                     name="Folder_cut:method"\n
diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/bt/change_log b/product/ERP5/bootstrap/erp5_xhtml_style/bt/change_log
index ad8dbcc46f..9c681223a9 100644
--- a/product/ERP5/bootstrap/erp5_xhtml_style/bt/change_log
+++ b/product/ERP5/bootstrap/erp5_xhtml_style/bt/change_log
@@ -1,3 +1,6 @@
+2010-02-01 fabien
+* don't display action buttons (like copy/paste, ...) in dialog_mode
+
 2010-02-01 yo
 * Add classes into elements which have ids set in page templates, so that we could get rid of the ids potentially (but we can't because of tests).
 
diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision
index 54d5fa6f52..6e3b01e5e2 100644
--- a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision
+++ b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision
@@ -1 +1 @@
-881
\ No newline at end of file
+883
\ No newline at end of file
-- 
2.30.9