From a08c3da0db5dab02c53bacba8adacd9dfec62eee Mon Sep 17 00:00:00 2001 From: Nicolas Delaby <nicolas@nexedi.com> Date: Mon, 27 Dec 2010 11:12:47 +0000 Subject: [PATCH] New action on Web Messages to display datas filled in by user if Web Message was created from internal Web Sites git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41794 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../Web%20Message/web_form_informations.xml | 101 ++++++++++++++++++ bt5/erp5_crm/bt/revision | 2 +- bt5/erp5_crm/bt/template_action_path_list | 3 +- 3 files changed, 104 insertions(+), 2 deletions(-) create mode 100644 bt5/erp5_crm/ActionTemplateItem/portal_types/Web%20Message/web_form_informations.xml diff --git a/bt5/erp5_crm/ActionTemplateItem/portal_types/Web%20Message/web_form_informations.xml b/bt5/erp5_crm/ActionTemplateItem/portal_types/Web%20Message/web_form_informations.xml new file mode 100644 index 0000000000..855e6d689a --- /dev/null +++ b/bt5/erp5_crm/ActionTemplateItem/portal_types/Web%20Message/web_form_informations.xml @@ -0,0 +1,101 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="ActionInformation" module="Products.CMFCore.ActionInformation"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>action</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>categories</string> </key> + <value> + <tuple> + <string>action_type/object_view</string> + </tuple> + </value> + </item> + <item> + <key> <string>category</string> </key> + <value> <string>object_view</string> </value> + </item> + <item> + <key> <string>condition</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string>source_carrier category is used to link web message to Web Section who delivered the Original Form.\n +This information is used to know if this action must be enabled or not.\n +\n +This Form has meaning only if erp5_web is installed and if you are using standard contact-us form</string> </value> + </item> + <item> + <key> <string>icon</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>web_form_informations</string> </value> + </item> + <item> + <key> <string>permissions</string> </key> + <value> + <tuple> + <string>View</string> + </tuple> + </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Action Information</string> </value> + </item> + <item> + <key> <string>priority</string> </key> + <value> <float>15.0</float> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Sender Informations</string> </value> + </item> + <item> + <key> <string>visible</string> </key> + <value> <int>1</int> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <global name="Expression" module="Products.CMFCore.Expression"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>string:${object_url}/WebMessage_viewWebFormInformation</string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <global name="Expression" module="Products.CMFCore.Expression"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>here/hasSourceCarrier</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_crm/bt/revision b/bt5/erp5_crm/bt/revision index 5da127eea4..39886ae89b 100644 --- a/bt5/erp5_crm/bt/revision +++ b/bt5/erp5_crm/bt/revision @@ -1 +1 @@ -507 \ No newline at end of file +512 \ No newline at end of file diff --git a/bt5/erp5_crm/bt/template_action_path_list b/bt5/erp5_crm/bt/template_action_path_list index 0d57e87296..63ea621678 100644 --- a/bt5/erp5_crm/bt/template_action_path_list +++ b/bt5/erp5_crm/bt/template_action_path_list @@ -80,4 +80,5 @@ Visit | view Web Message | assessment Web Message | preview Web Message | related_events -Web Message | view \ No newline at end of file +Web Message | view +Web Message | web_form_informations \ No newline at end of file -- 2.30.9