Commit 7c6384a9 authored by Rafael Monnerat's avatar Rafael Monnerat Committed by Xiaowu Zhang

Replaced ZPT by a FormBox

parent fa07e4d4
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<ZopeData> <ZopeData>
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/> <global name="ERP5Form" module="Products.ERP5Form.Form"/>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
...@@ -19,12 +19,7 @@ ...@@ -19,12 +19,7 @@
<item> <item>
<key> <string>_asgns</string> </key> <key> <string>_asgns</string> </key>
<value> <value>
<dictionary> <dictionary/>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value> </value>
</item> </item>
</dictionary> </dictionary>
...@@ -33,67 +28,129 @@ ...@@ -33,67 +28,129 @@
</value> </value>
</item> </item>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_objects</string> </key>
<value> <unicode encoding="cdata"><![CDATA[ <value>
<tuple/>
<tal:block tal:condition="python: not here.getPortalObject().portal_membership.isAnonymousUser()">\n </value>
<tal:block tal:define="customer here/SaleOrder_getShoppingCartCustomer">\n </item>
<br />\n <item>
<h2>Customer Information</h2>\n <key> <string>action</string> </key>
<table>\n <value> <string></string> </value>
<tr>\n </item>
<td>Name:</td>\n <item>
<td><span tal:content="customer/getTitle"/></td>\n <key> <string>description</string> </key>
</tr>\n <value> <string></string> </value>
<tr>\n </item>
<td>Email:</td>\n <item>
<td> <span tal:content="customer/getDefaultEmailText"/></td>\n <key> <string>edit_order</string> </key>
</tr>\n <value>
<tr>\n <list/>
<td>Telephone:</td>\n </value>
<td> <span tal:content="customer/getDefaultTelephoneText"/></td>\n </item>
</tr>\n <item>
<tr>\n <key> <string>encoding</string> </key>
<td>Address:</td>\n <value> <string>UTF-8</string> </value>
<td><span tal:content="customer/getDefaultAddressStreetAddress"/></td>\n </item>
</tr>\n <item>
<tr>\n <key> <string>enctype</string> </key>
<td>City:</td>\n <value> <string></string> </value>
<td><span tal:content="customer/getDefaultAddressCity"/></td>\n </item>
</tr>\n <item>
<tr>\n <key> <string>group_list</string> </key>
<td>ZIP:</td>\n <value>
<td><span tal:content="customer/getDefaultAddressZipCode"/></td>\n <list>
</tr>\n <string>left</string>
<tr>\n <string>right</string>
<td>Country:</td>\n <string>center</string>
<td><span tal:content="customer/getDefaultAddressRegionTitle"/></td>\n <string>bottom</string>
</tr>\n <string>hidden</string>
</table>\n </list>
</tal:block>\n </value>
</tal:block> </item>
<item>
]]></unicode> </value> <key> <string>groups</string> </key>
</item> <value>
<item> <dictionary>
<key> <string>content_type</string> </key> <item>
<value> <string>text/html</string> </value> <key> <string>bottom</string> </key>
</item> <value>
<item> <list/>
<key> <string>expand</string> </key> </value>
<value> <int>0</int> </value> </item>
<item>
<key> <string>center</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>hidden</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>left</string> </key>
<value>
<list>
<string>your_title</string>
<string>your_default_email_text</string>
<string>your_default_telephone_text</string>
<string>your_default_address_street_address</string>
<string>your_default_address_city</string>
<string>your_default_address_zip_code</string>
<string>your_default_address_region_title</string>
</list>
</value>
</item>
<item>
<key> <string>right</string> </key>
<value>
<list/>
</value>
</item>
</dictionary>
</value>
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>SaleOrder_viewCustomerRenderer</string> </value> <value> <string>SaleOrder_viewCustomerRenderer</string> </value>
</item> </item>
<item> <item>
<key> <string>output_encoding</string> </key> <key> <string>method</string> </key>
<value> <string>utf-8</string> </value> <value> <string>POST</string> </value>
</item>
<item>
<key> <string>name</string> </key>
<value> <string>SaleOrder_viewCustomerRenderer</string> </value>
</item>
<item>
<key> <string>pt</string> </key>
<value> <string>embedded_form_render</string> </value>
</item>
<item>
<key> <string>row_length</string> </key>
<value> <int>4</int> </value>
</item>
<item>
<key> <string>stored_encoding</string> </key>
<value> <string>UTF-8</string> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <unicode>Customer information custom renderer</unicode> </value> <value> <string>Customer Information</string> </value>
</item>
<item>
<key> <string>unicode_mode</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>update_action</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>update_action_title</string> </key>
<value> <string></string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
To get the Anonymous navigation working, it is necessary to set some security: To get the Anonymous navigation working is required to set some security:
currency_module - Access contents information currency_module - Access contents information
product_module - Access contents information product_module - Access contents information
sale_order_module - Access contents information sale_order_module - Access contents information
sale_trade_condition_module - Access contents information sale_trade_condition_module - Access contents information
TODO: TODO:
- merge account registration / creation into generic ERP5 - merge account registration / creation into generic ERP5
\ No newline at end of file
304 305
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment