From c0cbc06e1866758d6321eada3ad8a976b87c5792 Mon Sep 17 00:00:00 2001
From: Lucas Carvalho <lucas@nexedi.com>
Date: Thu, 7 Apr 2011 19:43:33 +0000
Subject: [PATCH] 2011-04-07 lucas * Added the page template of new user
 interface  which must replace the old your_business_configuration list field.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@45199 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 ...rTool_displayBusinessConfigurationList.xml | 112 ++++++++++++++++++
 bt5/erp5_configurator/bt/change_log           |   3 +
 bt5/erp5_configurator/bt/revision             |   2 +-
 3 files changed, 116 insertions(+), 1 deletion(-)
 create mode 100644 bt5/erp5_configurator/SkinTemplateItem/portal_skins/erp5_configurator_wizard/ConfiguratorTool_displayBusinessConfigurationList.xml

diff --git a/bt5/erp5_configurator/SkinTemplateItem/portal_skins/erp5_configurator_wizard/ConfiguratorTool_displayBusinessConfigurationList.xml b/bt5/erp5_configurator/SkinTemplateItem/portal_skins/erp5_configurator_wizard/ConfiguratorTool_displayBusinessConfigurationList.xml
new file mode 100644
index 0000000000..3d6366673d
--- /dev/null
+++ b/bt5/erp5_configurator/SkinTemplateItem/portal_skins/erp5_configurator_wizard/ConfiguratorTool_displayBusinessConfigurationList.xml
@@ -0,0 +1,112 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>_bind_names</string> </key>
+            <value>
+              <object>
+                <klass>
+                  <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
+                </klass>
+                <tuple/>
+                <state>
+                  <dictionary>
+                    <item>
+                        <key> <string>_asgns</string> </key>
+                        <value>
+                          <dictionary>
+                            <item>
+                                <key> <string>name_subpath</string> </key>
+                                <value> <string>traverse_subpath</string> </value>
+                            </item>
+                          </dictionary>
+                        </value>
+                    </item>
+                  </dictionary>
+                </state>
+              </object>
+            </value>
+        </item>
+        <item>
+            <key> <string>_text</string> </key>
+            <value> <unicode encoding="cdata"><![CDATA[
+
+<table>\n
+  <tbody>\n
+    <tal:block define="business_configuration_list python: here.ConfiguratorTool_getAvailableBusinessConfigurationList()">\n
+\n
+      <div tal:condition="python: not business_configuration_list">\n
+        <h3 i18n:translate="" i18n:domain="ui"> There is no Business Configuration Available. </h3>\n
+      </div>\n
+\n
+      <tal:block condition="business_configuration_list">\n
+        <tal:block repeat="business_configuration_tuple business_configuration_list">\n
+          <tr>\n
+            <tal:block repeat="bc business_configuration_tuple">\n
+              <tal:block define="bc_id python: bc.getId();\n
+                                 bc_title python: bc.getTitle();\n
+                                 bc_description python: bc.getDescription();\n
+                                 bc_absolute_url python: bc.absolute_url();\n
+                                 bc_default_image python: bc.getDefaultImageValue();\n
+                                 bc_default_image_absolute_url python: bc.getDefaultImageAbsoluteUrl();">\n
+                <td>\n
+                  <div tal:attributes="id python: \'business_configuration_%s\' % bc_id;\n
+                                       class string:box;">\n
+\n
+                    <a tal:attributes="href bc_absolute_url" tal:content="python: bc_title" />\n
+\n
+                    <a tal:condition="bc_default_image" tal:attributes="href bc_absolute_url">\n
+                      <img tal:attributes="src python: \'%s?format=png\' % bc_default_image_absolute_url" />\n
+                    </a>\n
+\n
+                    <span tal:condition="bc_description"\n
+                          tal:content="python: \'%s ...\' % bc_description[:80]" />\n
+\n
+                    <button id="dialog_submit_button"\n
+                            accesskey="V"\n
+                            tal:attributes="value python: bc.getRelativeUrl()"\n
+                            type="submit"\n
+                            name="Base_callDialogMethod:method">Configure</button>\n
+                  </div>\n
+                </td>\n
+              </tal:block>\n
+            </tal:block>\n
+          </tr>\n
+        </tal:block>\n
+\n
+      </tal:block>\n
+    </tal:block>\n
+  </tbody>\n
+</table>
+
+]]></unicode> </value>
+        </item>
+        <item>
+            <key> <string>content_type</string> </key>
+            <value> <string>text/html</string> </value>
+        </item>
+        <item>
+            <key> <string>expand</string> </key>
+            <value> <int>0</int> </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>ConfiguratorTool_displayBusinessConfigurationList</string> </value>
+        </item>
+        <item>
+            <key> <string>output_encoding</string> </key>
+            <value> <string>utf-8</string> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <unicode></unicode> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>
diff --git a/bt5/erp5_configurator/bt/change_log b/bt5/erp5_configurator/bt/change_log
index 35b9a4aa22..7ff6a4b16f 100644
--- a/bt5/erp5_configurator/bt/change_log
+++ b/bt5/erp5_configurator/bt/change_log
@@ -1,3 +1,6 @@
+2011-04-07 lucas
+* Added the page template of new user interface  which must replace the old your_business_configuration list field.
+
 2011-04-07 lucas
 * Added CSS file which must be used to customize the new user interface.
 
diff --git a/bt5/erp5_configurator/bt/revision b/bt5/erp5_configurator/bt/revision
index 22c04b349c..501f5773ed 100644
--- a/bt5/erp5_configurator/bt/revision
+++ b/bt5/erp5_configurator/bt/revision
@@ -1 +1 @@
-508
\ No newline at end of file
+509
\ No newline at end of file
-- 
2.30.9