Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Lu Xu
erp5
Commits
ab3c423b
Commit
ab3c423b
authored
12 years ago
by
Ivan Tyagov
Browse files
Options
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.isD
ocument
()
"
>
\n
tal:condition=
"python:
is_d
ocument"
>
\n
<h3
class=
"menu_title"
>
\n
<span
id=
"create_new_document_title"
></span>
\n
<span
id=
"clone_document_title"
>
\n
...
...
This diff is collapsed.
Click to expand it.
bt5/erp5_web/bt/revision
View file @
ab3c423b
1084
\ No newline at end of file
1085
\ No newline at end of file
This diff is collapsed.
Click to expand it.
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