From 466cebd58c7cb1f12f13cb9006368b6e14136f88 Mon Sep 17 00:00:00 2001
From: Jean-Paul Smets <jp@nexedi.com>
Date: Fri, 19 Jan 2007 15:14:58 +0000
Subject: [PATCH] 2007-01-19 JPS - Better listbox

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12170 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../erp5_web/WebSection_viewAsWeb/listbox.xml | 33 ++++++++++---------
 .../erp5_web/WebSite_viewAsWeb/listbox.xml    | 33 +++++++++----------
 2 files changed, 32 insertions(+), 34 deletions(-)

diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSection_viewAsWeb/listbox.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSection_viewAsWeb/listbox.xml
index 3e534e12fa..77a748b8c7 100644
--- a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSection_viewAsWeb/listbox.xml
+++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSection_viewAsWeb/listbox.xml
@@ -325,10 +325,18 @@
                     <key> <string>columns</string> </key>
                     <value>
                       <list>
+                        <tuple>
+                          <string>reference</string>
+                          <string>Reference</string>
+                        </tuple>
                         <tuple>
                           <string>title</string>
                           <string>Title</string>
                         </tuple>
+                        <tuple>
+                          <string>modification_date</string>
+                          <string>Date</string>
+                        </tuple>
                       </list>
                     </value>
                 </item>
@@ -390,7 +398,7 @@
                 </item>
                 <item>
                     <key> <string>lines</string> </key>
-                    <value> <int>20</int> </value>
+                    <value> <int>10</int> </value>
                 </item>
                 <item>
                     <key> <string>list_action</string> </key>
@@ -420,18 +428,6 @@
                           <string>Web Page</string>
                           <string>Web Page</string>
                         </tuple>
-                        <tuple>
-                          <string>Product</string>
-                          <string>Product</string>
-                        </tuple>
-                        <tuple>
-                          <string>Web Section</string>
-                          <string>Web Section</string>
-                        </tuple>
-                        <tuple>
-                          <string>Person</string>
-                          <string>Person</string>
-                        </tuple>
                       </list>
                     </value>
                 </item>
@@ -466,7 +462,12 @@
                 <item>
                     <key> <string>sort</string> </key>
                     <value>
-                      <list/>
+                      <list>
+                        <tuple>
+                          <string>modification_date</string>
+                          <string>descending</string>
+                        </tuple>
+                      </list>
                     </value>
                 </item>
                 <item>
@@ -487,7 +488,7 @@
                 </item>
                 <item>
                     <key> <string>title</string> </key>
-                    <value> <string>Section Content</string> </value>
+                    <value> <string>Recent Changes</string> </value>
                 </item>
                 <item>
                     <key> <string>url_columns</string> </key>
@@ -534,7 +535,7 @@
       <dictionary>
         <item>
             <key> <string>method_name</string> </key>
-            <value> <string>WebSection_getDocumentValueList</string> </value>
+            <value> <string>getDocumentValueList</string> </value>
         </item>
       </dictionary>
     </pickle>
diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_viewAsWeb/listbox.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_viewAsWeb/listbox.xml
index 3e534e12fa..370917e849 100644
--- a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_viewAsWeb/listbox.xml
+++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebSite_viewAsWeb/listbox.xml
@@ -326,9 +326,13 @@
                     <value>
                       <list>
                         <tuple>
-                          <string>title</string>
+                          <string>translated_title</string>
                           <string>Title</string>
                         </tuple>
+                        <tuple>
+                          <string>description</string>
+                          <string>Description</string>
+                        </tuple>
                       </list>
                     </value>
                 </item>
@@ -390,7 +394,7 @@
                 </item>
                 <item>
                     <key> <string>lines</string> </key>
-                    <value> <int>20</int> </value>
+                    <value> <int>10</int> </value>
                 </item>
                 <item>
                     <key> <string>list_action</string> </key>
@@ -416,22 +420,10 @@
                     <key> <string>portal_types</string> </key>
                     <value>
                       <list>
-                        <tuple>
-                          <string>Web Page</string>
-                          <string>Web Page</string>
-                        </tuple>
-                        <tuple>
-                          <string>Product</string>
-                          <string>Product</string>
-                        </tuple>
                         <tuple>
                           <string>Web Section</string>
                           <string>Web Section</string>
                         </tuple>
-                        <tuple>
-                          <string>Person</string>
-                          <string>Person</string>
-                        </tuple>
                       </list>
                     </value>
                 </item>
@@ -461,12 +453,17 @@
                 </item>
                 <item>
                     <key> <string>selection_name</string> </key>
-                    <value> <string>section_content_selection</string> </value>
+                    <value> <string>site_section_selection</string> </value>
                 </item>
                 <item>
                     <key> <string>sort</string> </key>
                     <value>
-                      <list/>
+                      <list>
+                        <tuple>
+                          <string>int_index</string>
+                          <string>int_index</string>
+                        </tuple>
+                      </list>
                     </value>
                 </item>
                 <item>
@@ -487,7 +484,7 @@
                 </item>
                 <item>
                     <key> <string>title</string> </key>
-                    <value> <string>Section Content</string> </value>
+                    <value> <string>Site Sections</string> </value>
                 </item>
                 <item>
                     <key> <string>url_columns</string> </key>
@@ -534,7 +531,7 @@
       <dictionary>
         <item>
             <key> <string>method_name</string> </key>
-            <value> <string>WebSection_getDocumentValueList</string> </value>
+            <value> <string>contentValues</string> </value>
         </item>
       </dictionary>
     </pickle>
-- 
2.30.9