Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Cédric Le Ninivin
erp5
Commits
ab3c423b
Commit
ab3c423b
authored
Jun 06, 2012
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow to clone any object not just documents.
parent
5201b9c4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
3 deletions
+18
-3
bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_widget_library/WebSection_viewToolbarWidget.xml
.../erp5_web_widget_library/WebSection_viewToolbarWidget.xml
+17
-2
bt5/erp5_web/bt/revision
bt5/erp5_web/bt/revision
+1
-1
No files found.
bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_widget_library/WebSection_viewToolbarWidget.xml
View file @
ab3c423b
...
...
@@ -58,7 +58,9 @@
document_url python: test(is_permanent_document, \n
getattr(here, \'editable_absolute_url\', absolute_url), \n
absolute_url);\n
http_parameters string:${request/http_parameters}"
>
\n
http_parameters string:${request/http_parameters};\n
is_document here/isDocument;\n
is_clone_allowed python: portal_type in here.getParentValue().getVisibleAllowedContentTypeList();"
>
\n
\n
<ul>
\n
<!-- Edit button menu -->
\n
...
...
@@ -202,9 +204,22 @@
XXX - This is not so good to create new content in a section\n
Behaviour should be to create content in section / site\n
-->
\n
<li
class=
"toolboxSection"
\n
id=
"clone-document-toolbox"
\n
tal:condition=
"python: not is_document and is_clone_allowed"
>
\n
<h3
class=
"menu_title"
>
\n
<span
id=
"create_new_document_title"
></span>
\n
<span
id=
"clone_document_title"
>
\n
<a
href=
"Base_createCloneDocument"
\n
tal:content=
"string:Clone $portal_type"
/>
\n
</span>
\n
</h3>
\n
\n
</li>
\n
\n
<li
class=
"toolboxSection"
\n
id=
"clone-document-toolbox"
\n
tal:condition=
"python:
here.isDocument()
"
>
\n
tal:condition=
"python:
is_document
"
>
\n
<h3
class=
"menu_title"
>
\n
<span
id=
"create_new_document_title"
></span>
\n
<span
id=
"clone_document_title"
>
\n
...
...
bt5/erp5_web/bt/revision
View file @
ab3c423b
1084
\ No newline at end of file
1085
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment