From 781eb09badb937e1ebb2e9947e61a059f09e2982 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Mon, 16 Oct 2006 12:43:22 +0000 Subject: [PATCH] Add a new action category, object_add that pops up in Action menu at the same level that allowed content types. (handy to conditionnaly show the add action for a given type or to call a custom script to add the content). git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10745 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../portal_skins/erp5_xhtml_style/context_box_render.xml | 6 ++++++ product/ERP5/bootstrap/erp5_xhtml_style/bt/revision | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/context_box_render.xml b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/context_box_render.xml index dab5cd4bb7..c51cab4012 100644 --- a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/context_box_render.xml +++ b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/context_box_render.xml @@ -130,6 +130,12 @@ XXX: Folder_filter accesses selection directly\n i18n:name="portal_type"/>\n </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">\n + Add <tal:block tal:content="action/name" i18n:name="portal_type" i18n:translate=""/>\n + </option>\n </tal:block>\n <tal:block tal:define="document_template_list here/getDocumentTemplateList | nothing"\n tal:condition="document_template_list">\n diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision index b1ef57c1f7..4acc65d012 100644 --- a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision +++ b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision @@ -1 +1 @@ -265 \ No newline at end of file +266 \ No newline at end of file -- 2.30.9