Commit a8713dfb authored by Jérome Perrin's avatar Jérome Perrin

drop support for add_action which is not used anymore, and was just a wrong hack

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36314 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2560b6ce
...@@ -103,15 +103,6 @@ ...@@ -103,15 +103,6 @@
</button>\n </button>\n
</li>\n </li>\n
</tal:block>\n </tal:block>\n
<li tal:repeat="action actions/object_add | nothing">\n
<button class="menu-link" \n
tal:attributes="title string:Add ${action/name};\n
name python:\'Base_doAction:method\';\n
value string:object ${action/url}"\n
i18n:translate="" i18n:domain="ui">\n
Add <tal:block tal:content="action/name" i18n:name="portal_type" i18n:translate="" />\n
</button>\n
</li>\n
<tal:block tal:define="document_template_list here/getDocumentTemplateList | nothing"\n <tal:block tal:define="document_template_list here/getDocumentTemplateList | nothing"\n
tal:condition="document_template_list">\n tal:condition="document_template_list">\n
<li tal:repeat="document_template document_template_list">\n <li tal:repeat="document_template document_template_list">\n
...@@ -312,7 +303,8 @@ ...@@ -312,7 +303,8 @@
</li>\n </li>\n
<script type="text/javascript" src="erp5_web_toolbar.js" tal:attributes="src string:$portal_url/erp5_web_toolbar.js"></script>\n <script type="text/javascript" src="erp5_web_toolbar.js" tal:attributes="src string:$portal_url/erp5_web_toolbar.js"></script>\n
</ul>\n </ul>\n
</tal:block> </tal:block>\n
]]></string> </value> ]]></string> </value>
</item> </item>
......
960 961
\ No newline at end of file \ No newline at end of file
...@@ -131,13 +131,6 @@ def getModuleActionInformationDict(**kw):\n ...@@ -131,13 +131,6 @@ def getModuleActionInformationDict(**kw):\n
template_name = Base_translateString(\'${template_title} (Template)\',\n template_name = Base_translateString(\'${template_title} (Template)\',\n
mapping=dict(template_title=template.getTitle()))\n mapping=dict(template_title=template.getTitle()))\n
module_add_list.append((template_name, url))\n module_add_list.append((template_name, url))\n
for add_action in action_dict.get(\'object_add\', ()):\n
url = renderCustomLink(add_action[\'url\'],\n
dict(cancel_url=cancel_url,\n
form_id=form_id,\n
selection_name=selection_name,\n
select_action=action))\n
module_add_list.append((Base_translateString(add_action[\'name\']), url))\n
if module_add_list:\n if module_add_list:\n
add_list.append((translated_title, module_add_list))\n add_list.append((translated_title, module_add_list))\n
\n \n
......
...@@ -88,10 +88,6 @@ ...@@ -88,10 +88,6 @@
i18n:translate="" i18n:domain="ui">Add <tal:block tal:content="content_id"\n i18n:translate="" i18n:domain="ui">Add <tal:block tal:content="content_id"\n
i18n:name="portal_type" i18n:translate="" i18n:domain="ui" /></option>\n i18n:name="portal_type" i18n:translate="" i18n:domain="ui" /></option>\n
</tal:block>\n </tal:block>\n
<tal:block tal:repeat="action actions/object_add | nothing">\n
<option tal:attributes="value string:object ${action/url}"\n
i18n:translate="" i18n:domain="ui">Add <tal:block tal:content="action/name" i18n:name="portal_type" i18n:translate="" /></option>\n
</tal:block>\n
<tal:block tal:define="document_template_list here/getDocumentTemplateList | nothing"\n <tal:block tal:define="document_template_list here/getDocumentTemplateList | nothing"\n
tal:condition="document_template_list">\n tal:condition="document_template_list">\n
<option disabled="disabled">-- <tal:block i18n:translate="" i18n:domain="ui">Templates</tal:block> --</option>\n <option disabled="disabled">-- <tal:block i18n:translate="" i18n:domain="ui">Templates</tal:block> --</option>\n
......
952 953
\ 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