[Erp5-report] r9578 - /erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem...
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Aug 31 11:42:55 CEST 2006
Author: kevin
Date: Thu Aug 31 11:42:52 2006
New Revision: 9578
URL: http://svn.erp5.org?rev=9578&view=rev
Log:
Display edit tabs in web editable_mode.
Little code layout change.
Modified:
erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/view_main.xml
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/view_main.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/view_main.xml?rev=9578&r1=9577&r2=9578&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/view_main.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/view_main.xml Thu Aug 31 11:42:52 2006
@@ -73,11 +73,11 @@
-->\n
</tal:block>\n
<tal:block metal:define-macro="master">\n
- <tal:block tal:define="object_uid here/getUid | nothing;\n
- object_path here/getPath | nothing;\n
- form nocall: form | nothing;\n
- form_id form/id | nothing;\n
- form_action python: form and form.action not in (\'\', None) and here.portal_membership.checkPermission(\'Modify portal content\', here) and form.action or nothing;\n
+ <tal:block tal:define="object_uid here/getUid | nothing;\n
+ object_path here/getPath | nothing;\n
+ form nocall: form | nothing;\n
+ form_id form/id | nothing;\n
+ form_action python: form and form.action not in (\'\', None) and here.portal_membership.checkPermission(\'Modify portal content\', here) and form.action or nothing;\n
\n
local_parameter_list local_parameter_list | python: {};\n
dummy python: local_parameter_list.update({\'object_uid\': object_uid, \'object_path\': object_path, \'form_id\': form_id});\n
@@ -100,7 +100,7 @@
i18n:translate="" i18n:domain="ui">Save</span>\n
</button>\n
</tal:block>\n
- <ul tal:condition="python: not is_web_mode and len(actions)">\n
+ <ul tal:condition="python: (not is_web_mode or editable_mode) and len(actions)">\n
<tal:block tal:repeat="action actions">\n
<li tal:attributes="class python: action == current_action and \'selected\' or \'not_selected\'">\n
<a tal:attributes="href python: here.ERP5XhtmlStyle_renderLink(action[\'url\'], http_parameters)"\n
More information about the Erp5-report
mailing list