From fec48e54a4bed5bae96a7ddea685201967f6fb90 Mon Sep 17 00:00:00 2001 From: Jean-Paul Smets <jp@nexedi.com> Date: Wed, 24 Jan 2007 13:56:09 +0000 Subject: [PATCH] use Editor Field to render HTML. Updated tips. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12288 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../category_import_tips.xml | 98 +++++++++++-------- 1 file changed, 59 insertions(+), 39 deletions(-) diff --git a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/CategoryTool_importCategoryFileForm/category_import_tips.xml b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/CategoryTool_importCategoryFileForm/category_import_tips.xml index a3b4515d9c..8cb6c0eef5 100644 --- a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/CategoryTool_importCategoryFileForm/category_import_tips.xml +++ b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/CategoryTool_importCategoryFileForm/category_import_tips.xml @@ -4,8 +4,8 @@ <pickle> <tuple> <tuple> - <string>Products.Formulator.StandardFields</string> - <string>StringField</string> + <string>Products.ERP5Form.EditorField</string> + <string>EditorField</string> </tuple> <none/> </tuple> @@ -24,13 +24,21 @@ <key> <string>external_validator_failed</string> </key> <value> <string>The input failed the external validator.</string> </value> </item> + <item> + <key> <string>line_too_long</string> </key> + <value> <string>A line was too long.</string> </value> + </item> <item> <key> <string>required_not_found</string> </key> <value> <string>Input is required but no input given.</string> </value> </item> <item> <key> <string>too_long</string> </key> - <value> <string>Too much input was given.</string> </value> + <value> <string>You entered too many characters.</string> </value> + </item> + <item> + <key> <string>too_many_lines</string> </key> + <value> <string>You entered too many lines.</string> </value> </item> </dictionary> </value> @@ -55,14 +63,6 @@ <key> <string>description</string> </key> <value> <string></string> </value> </item> - <item> - <key> <string>display_maxwidth</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>display_width</string> </key> - <value> <string></string> </value> - </item> <item> <key> <string>editable</string> </key> <value> <string></string> </value> @@ -79,6 +79,10 @@ <key> <string>extra</string> </key> <value> <string></string> </value> </item> + <item> + <key> <string>height</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>hidden</string> </key> <value> <string></string> </value> @@ -88,15 +92,19 @@ <value> <string></string> </value> </item> <item> - <key> <string>required</string> </key> + <key> <string>max_linelength</string> </key> <value> <string></string> </value> </item> <item> - <key> <string>title</string> </key> + <key> <string>max_lines</string> </key> <value> <string></string> </value> </item> <item> - <key> <string>truncate</string> </key> + <key> <string>required</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> <value> <string></string> </value> </item> <item> @@ -107,6 +115,10 @@ <key> <string>whitespace_preserve</string> </key> <value> <string></string> </value> </item> + <item> + <key> <string>width</string> </key> + <value> <string></string> </value> + </item> </dictionary> </value> </item> @@ -130,14 +142,6 @@ <key> <string>description</string> </key> <value> <string></string> </value> </item> - <item> - <key> <string>display_maxwidth</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>display_width</string> </key> - <value> <string></string> </value> - </item> <item> <key> <string>editable</string> </key> <value> <string></string> </value> @@ -154,6 +158,10 @@ <key> <string>extra</string> </key> <value> <string></string> </value> </item> + <item> + <key> <string>height</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>hidden</string> </key> <value> <string></string> </value> @@ -163,15 +171,19 @@ <value> <string></string> </value> </item> <item> - <key> <string>required</string> </key> + <key> <string>max_linelength</string> </key> <value> <string></string> </value> </item> <item> - <key> <string>title</string> </key> + <key> <string>max_lines</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>required</string> </key> <value> <string></string> </value> </item> <item> - <key> <string>truncate</string> </key> + <key> <string>title</string> </key> <value> <string></string> </value> </item> <item> @@ -182,6 +194,10 @@ <key> <string>whitespace_preserve</string> </key> <value> <string></string> </value> </item> + <item> + <key> <string>width</string> </key> + <value> <string></string> </value> + </item> </dictionary> </value> </item> @@ -201,7 +217,7 @@ <key> <string>default</string> </key> <value> <string encoding="cdata"><![CDATA[ -<ul><li>An OpenOffice file is available at <a href="portal_skins/erp5_core/erp5_import_category_tree_examples.sxc">/portal_skins/erp5_core/erp5_import_category_tree_examples.sxc</a> . It contain different examples of how to input a tree of categories. Each sheet title will be used as Base Category.</li><li>Do not merge cells in the uploaded spreadsheet: this will confuse the parser and produce unpredictible results.</li><li>Do not use category IDs which are defined in Property Sheets as property. ERP5 is currently not able to make the difference between a subobject ID and a property ID. This bug must be fixed.</li><li>Even if this tool was designed to import OpenOffice v1.x documents, OASIS OpenDocument files seems to work as well.</li><li>This tool is not intrusive: if an existing category tree is found, it will update each category but will not try to remove any one.</li></ul> +<ul><li>An OpenOffice file is available at <a href="portal_skins/erp5_core/erp5_import_category_tree_examples.sxc">/portal_skins/erp5_core/erp5_import_category_tree_examples.sxc</a> . It contain different examples of how to input a tree of categories. Each sheet title will be used as Base Category.</li><li>Rename every tab of the spreadsheet with the ID of the corrsponding base category ID (ex. group).</li><li>Do not merge cells in the uploaded spreadsheet: this will confuse the parser and produce unpredictible results.</li><li><b>Do not use category IDs which are defined in Property Sheets as property</b>. ERP5 is not able to make the difference between a subobject ID and a property ID.</li><li>Even if this tool was designed to import OpenOffice v1.x documents, OASIS OpenDocument files seems to work as well.</li><li>This tool is not intrusive: if an existing category tree is found, it will update each category but will not try to remove any one.</li></ul> ]]></string> </value> </item> @@ -209,14 +225,6 @@ <key> <string>description</string> </key> <value> <string></string> </value> </item> - <item> - <key> <string>display_maxwidth</string> </key> - <value> <string></string> </value> - </item> - <item> - <key> <string>display_width</string> </key> - <value> <int>20</int> </value> - </item> <item> <key> <string>editable</string> </key> <value> <int>0</int> </value> @@ -233,6 +241,10 @@ <key> <string>extra</string> </key> <value> <string></string> </value> </item> + <item> + <key> <string>height</string> </key> + <value> <int>5</int> </value> + </item> <item> <key> <string>hidden</string> </key> <value> <int>0</int> </value> @@ -241,6 +253,14 @@ <key> <string>max_length</string> </key> <value> <string></string> </value> </item> + <item> + <key> <string>max_linelength</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>max_lines</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>required</string> </key> <value> <int>0</int> </value> @@ -249,18 +269,18 @@ <key> <string>title</string> </key> <value> <string>Tips</string> </value> </item> - <item> - <key> <string>truncate</string> </key> - <value> <int>0</int> </value> - </item> <item> <key> <string>unicode</string> </key> - <value> <int>1</int> </value> + <value> <int>0</int> </value> </item> <item> <key> <string>whitespace_preserve</string> </key> <value> <int>0</int> </value> </item> + <item> + <key> <string>width</string> </key> + <value> <int>40</int> </value> + </item> </dictionary> </value> </item> -- 2.30.9