Commit 2149c768 authored by Lucas Carvalho's avatar Lucas Carvalho

Added new actions.

Now the customer can use My Favourites to navigate between his instances.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@37286 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9e539e2f
......@@ -54,8 +54,8 @@
<item>
<key> <string>_body</string> </key>
<value> <string>portal = context.getPortalObject()\n
return container.REQUEST.RESPONSE.redirect(\'%s/instance\'\n
%portal.ERP5Site_getTioLiveSiteRootUrl())\n
return container.REQUEST.RESPONSE.redirect(\'%s/%s\'\n
% (portal.ERP5Site_getTioLiveSiteRootUrl(), site_id))\n
</string> </value>
</item>
<item>
......@@ -66,7 +66,7 @@ return container.REQUEST.RESPONSE.redirect(\'%s/instance\'\n
</item>
<item>
<key> <string>_params</string> </key>
<value> <string></string> </value>
<value> <string>site_id=\'instance\'</string> </value>
</item>
<item>
<key> <string>errors</string> </key>
......@@ -86,12 +86,13 @@ return container.REQUEST.RESPONSE.redirect(\'%s/instance\'\n
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
<value> <int>0</int> </value>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>site_id</string>
<string>_getattr_</string>
<string>context</string>
<string>portal</string>
......@@ -107,7 +108,9 @@ return container.REQUEST.RESPONSE.redirect(\'%s/instance\'\n
<item>
<key> <string>func_defaults</string> </key>
<value>
<none/>
<tuple>
<string>instance</string>
</tuple>
</value>
</item>
<item>
......
......@@ -70,6 +70,12 @@
i18n:translate="" i18n:domain="ui"></option>\n
</tal:block>\n
</tal:block>\n
<option tal:condition="python: getattr(here, \'Base_getUserRemoteBusinessConfigurationReferenceList\', None) is not None"\n
disabled="disabled">-- <tal:block tal:content="string: Your Instances" i18n:translate="" i18n:domain="ui" /> --</option>\n
<tal:block tal:condition="python: getattr(here, \'Base_getUserRemoteBusinessConfigurationReferenceList\', None) is not None"\n
tal:repeat="instance_id python: here.Base_getUserRemoteBusinessConfigurationReferenceList()">\n
<option tal:attributes="value python: \'%s/%s\' % (here.ERP5Site_getTioLiveSiteRootUrl(include_language=0), instance_id)"><tal:block tal:content="python: \'Go to %s\' % instance_id" i18n:translate="" i18n:domain="ui"></tal:block></option>\n
</tal:block>\n
<tal:block tal:condition="user_actions">\n
<option disabled="disabled">-- <tal:block i18n:translate="" i18n:domain="ui">User</tal:block> --</option>\n
<option tal:repeat="action user_actions"\n
......
69
\ No newline at end of file
70
\ 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