[Erp5-report] r10745 - in /erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style: SkinTemplat...

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Oct 16 14:43:25 CEST 2006


Author: jerome
Date: Mon Oct 16 14:43:22 2006
New Revision: 10745

URL: http://svn.erp5.org?rev=10745&view=rev
Log:
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).


Modified:
    erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/context_box_render.xml
    erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/context_box_render.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/context_box_render.xml?rev=10745&r1=10744&r2=10745&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/context_box_render.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/context_box_render.xml Mon Oct 16 14:43:22 2006
@@ -131,6 +131,12 @@
           </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
         <option disabled="disabled">-- <tal:block i18n:translate="" i18n:domain="ui">Templates</tal:block> --</option>\n

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision?rev=10745&r1=10744&r2=10745&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision Mon Oct 16 14:43:22 2006
@@ -1,1 +1,1 @@
-265
+266




More information about the Erp5-report mailing list