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 96425d154d8d14e602ca4de563d9eda02674fdba..e19421f8e9bda7a1683da8c5ebcb18ac95ea00ec 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 @@ -153,25 +153,20 @@ ui_actions actions/object_ui | nothing;\n print_actions actions/object_print | nothing;\n list_mode list_mode | nothing;\n - can_modify_portal_content python: portal.portal_membership.checkPermission(\'Modify portal content\', here);\n - can_delete_objects python: portal.portal_membership.checkPermission(\'Delete objects\', here);\n - can_copy_or_move python: portal.portal_membership.checkPermission(\'Copy Or Move\', here);\n - can_add_object_here python: len(here.getVisibleAllowedContentTypeList()) > 0;">\n + can_modify_portal_content python: portal.portal_membership.checkPermission(\'Modify portal content\', here)">\n <span class="separator"><!--separator--></span>\n <tal:block tal:condition="list_mode">\n - <tal:block tal:condition="can_copy_or_move">\n - <button class="cut" type="submit" name="Folder_cut:method" title="Cut"\n - i18n:attributes="title" i18n:domain="ui"\n - tal:condition="can_modify_portal_content">\n - <span class="image"></span>\n - <span class="description" i18n:translate="" i18n:domain="ui">Cut</span>\n - </button>\n - <button class="copy" type="submit" name="Folder_copy:method" title="Copy"\n - i18n:attributes="title" i18n:domain="ui">\n - <span class="image"></span>\n - <span class="description" i18n:translate="" i18n:domain="ui">Copy</span>\n - </button>\n - </tal:block>\n + <button class="cut" type="submit" name="Folder_cut:method" title="Cut"\n + i18n:attributes="title" i18n:domain="ui"\n + tal:condition="can_modify_portal_content">\n + <span class="image"></span>\n + <span class="description" i18n:translate="" i18n:domain="ui">Cut</span>\n + </button>\n + <button class="copy" type="submit" name="Folder_copy:method" title="Copy"\n + i18n:attributes="title" i18n:domain="ui">\n + <span class="image"></span>\n + <span class="description" i18n:translate="" i18n:domain="ui">Copy</span>\n + </button>\n <button class="paste" type="submit" name="Folder_paste:method" title="Paste"\n i18n:attributes="title" i18n:domain="ui">\n <span class="image"></span>\n @@ -184,9 +179,8 @@ <span class="image"></span>\n <span class="description" i18n:translate="" i18n:domain="ui">Print</span>\n </button>\n - <button tal:condition="python: list_mode and can_add_object_here"\n + <button class="new" type="submit" title="New"\n tal:attributes="name python: list_mode and \'Folder_create:method\' or \'Base_createNewDocument:method\'"\n - class="new" type="submit" title="New"\n i18n:attributes="title" i18n:domain="ui">\n <span class="image"></span>\n <span class="description" i18n:translate="" i18n:domain="ui">New</span>\n @@ -198,8 +192,7 @@ <span class="image"></span>\n <span class="description" i18n:translate="" i18n:domain="ui">Clone</span>\n </button>\n - <button tal:condition="python: list_mode and can_delete_objects" class="delete" type="submit" \n - name="Folder_deleteObjectList:method" title="Delete"\n + <button tal:condition="list_mode" class="delete" type="submit" name="Folder_deleteObjectList:method" title="Delete"\n i18n:attributes="title" i18n:domain="ui">\n <span class="image"></span>\n <span class="description" i18n:translate="" i18n:domain="ui">Delete</span>\n diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/bt/change_log b/product/ERP5/bootstrap/erp5_xhtml_style/bt/change_log index e09ddea50f349e638e788dd538fafcfcad3d4331..c0ba0c7ff06f52be0370d3b3777b550e59ccd7b3 100644 --- a/product/ERP5/bootstrap/erp5_xhtml_style/bt/change_log +++ b/product/ERP5/bootstrap/erp5_xhtml_style/bt/change_log @@ -1,8 +1,3 @@ -2010-01-07 Nicolas Dumazet -* Dont show a New button if there are no Visible Allowed Content Types -* Do not show Cut/Paste button if no "Copy or Move" permission -* Do not show Delete button if no "Delete objects" permission - 2009-12-11 Kazuhiko * update FCKeditor to 2.6.5. diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision index bbff031a29f577ecf9bb9e61a269b88e828da762..e39afc8dd2d0b830e59372f6e3c0549322c0a24e 100644 --- a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision +++ b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision @@ -1 +1 @@ -867 \ No newline at end of file +868 \ No newline at end of file