From 4be80b4bd53fe094b1d62118fbac638a4a90a0b7 Mon Sep 17 00:00:00 2001 From: Sebastien Robin <seb@nexedi.com> Date: Tue, 29 Oct 2013 16:44:24 +0100 Subject: [PATCH] erp5_core: use parallel list field in portal type view instead of multilistfield Like this : - we see immediately what is selected - no risk to remove by mistake something already selected - much more convenient to change The only tiny drawback is that the look might be a bit different when many values are selected. --- .../BaseType_view/my_type_base_category_list.xml | 6 +++++- .../BaseType_view/my_type_group_list.xml | 6 +++++- .../BaseType_view/my_type_interface_list.xml | 15 ++++++++++----- .../BaseType_view/my_type_mixin_list.xml | 15 ++++++++++----- .../BaseType_view/my_type_property_sheet_list.xml | 6 +++++- 5 files changed, 35 insertions(+), 13 deletions(-) diff --git a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/BaseType_view/my_type_base_category_list.xml b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/BaseType_view/my_type_base_category_list.xml index c1b287dd72..31830cd746 100644 --- a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/BaseType_view/my_type_base_category_list.xml +++ b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/BaseType_view/my_type_base_category_list.xml @@ -71,6 +71,10 @@ <key> <string>target</string> </key> <value> <string></string> </value> </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> </dictionary> </value> </item> @@ -80,7 +84,7 @@ <dictionary> <item> <key> <string>field_id</string> </key> - <value> <string>my_multi_list_field</string> </value> + <value> <string>my_parallel_list_field</string> </value> </item> <item> <key> <string>form_id</string> </key> diff --git a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/BaseType_view/my_type_group_list.xml b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/BaseType_view/my_type_group_list.xml index b6081e6dce..64a65dae3a 100644 --- a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/BaseType_view/my_type_group_list.xml +++ b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/BaseType_view/my_type_group_list.xml @@ -71,6 +71,10 @@ <key> <string>target</string> </key> <value> <string></string> </value> </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> </dictionary> </value> </item> @@ -80,7 +84,7 @@ <dictionary> <item> <key> <string>field_id</string> </key> - <value> <string>my_multi_list_field</string> </value> + <value> <string>my_parallel_list_field</string> </value> </item> <item> <key> <string>form_id</string> </key> diff --git a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/BaseType_view/my_type_interface_list.xml b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/BaseType_view/my_type_interface_list.xml index a87ff08549..62e14aa41e 100644 --- a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/BaseType_view/my_type_interface_list.xml +++ b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/BaseType_view/my_type_interface_list.xml @@ -10,9 +10,8 @@ <key> <string>delegated_list</string> </key> <value> <list> - <string>size</string> - <string>title</string> <string>items</string> + <string>title</string> </list> </value> </item> @@ -72,6 +71,10 @@ <key> <string>target</string> </key> <value> <string></string> </value> </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> </dictionary> </value> </item> @@ -81,15 +84,17 @@ <dictionary> <item> <key> <string>field_id</string> </key> - <value> <string>my_multi_list_field</string> </value> + <value> <string>my_parallel_list_field</string> </value> </item> <item> <key> <string>form_id</string> </key> <value> <string>Base_viewFieldLibrary</string> </value> </item> <item> - <key> <string>size</string> </key> - <value> <int>5</int> </value> + <key> <string>items</string> </key> + <value> + <list/> + </value> </item> <item> <key> <string>target</string> </key> diff --git a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/BaseType_view/my_type_mixin_list.xml b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/BaseType_view/my_type_mixin_list.xml index c56c73437e..d9a8aad39b 100644 --- a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/BaseType_view/my_type_mixin_list.xml +++ b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/BaseType_view/my_type_mixin_list.xml @@ -10,9 +10,8 @@ <key> <string>delegated_list</string> </key> <value> <list> - <string>size</string> - <string>title</string> <string>items</string> + <string>title</string> </list> </value> </item> @@ -72,6 +71,10 @@ <key> <string>target</string> </key> <value> <string></string> </value> </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> </dictionary> </value> </item> @@ -81,15 +84,17 @@ <dictionary> <item> <key> <string>field_id</string> </key> - <value> <string>my_multi_list_field</string> </value> + <value> <string>my_parallel_list_field</string> </value> </item> <item> <key> <string>form_id</string> </key> <value> <string>Base_viewFieldLibrary</string> </value> </item> <item> - <key> <string>size</string> </key> - <value> <int>5</int> </value> + <key> <string>items</string> </key> + <value> + <list/> + </value> </item> <item> <key> <string>target</string> </key> diff --git a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/BaseType_view/my_type_property_sheet_list.xml b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/BaseType_view/my_type_property_sheet_list.xml index a688987ac9..743bc394b0 100644 --- a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/BaseType_view/my_type_property_sheet_list.xml +++ b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/BaseType_view/my_type_property_sheet_list.xml @@ -71,6 +71,10 @@ <key> <string>target</string> </key> <value> <string></string> </value> </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> </dictionary> </value> </item> @@ -80,7 +84,7 @@ <dictionary> <item> <key> <string>field_id</string> </key> - <value> <string>my_multi_list_field</string> </value> + <value> <string>my_parallel_list_field</string> </value> </item> <item> <key> <string>form_id</string> </key> -- 2.30.9