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
Labels
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
17c1341e
Commit
17c1341e
authored
Mar 02, 2018
by
Tomáš Peterka
Committed by
Tomáš Peterka
Mar 05, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_core+xhtml+renderjs] Add object_jio_button action
parent
6da67666
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
143 additions
and
18 deletions
+143
-18
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_action_js.js
...ateItem/web_page_module/rjs_gadget_erp5_page_action_js.js
+10
-11
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_action_js.xml
...teItem/web_page_module/rjs_gadget_erp5_page_action_js.xml
+2
-2
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_panel_js.js
...hTemplateItem/web_page_module/rjs_gadget_erp5_panel_js.js
+3
-1
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_panel_js.xml
...TemplateItem/web_page_module/rjs_gadget_erp5_panel_js.xml
+2
-2
product/ERP5/bootstrap/erp5_core/PathTemplateItem/portal_categories/action_type/object_jio_button.xml
...eItem/portal_categories/action_type/object_jio_button.xml
+120
-0
product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/context_box_render.zpt
...Item/portal_skins/erp5_xhtml_style/context_box_render.zpt
+6
-2
No files found.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_action_js.js
View file @
17c1341e
...
...
@@ -68,21 +68,20 @@
/////////////////////////////////////////////////////////////////
.
declareMethod
(
"
render
"
,
function
(
options
)
{
var
gadget
=
this
,
erp5_document
,
transition_list
,
action_list
,
clone_list
,
delete_list
;
erp5_document
;
// Get the whole view as attachment because actions can change based on
// what view we are at. If no view available than fallback to "links".
return
gadget
.
jio_getAttachment
(
options
.
jio_key
,
options
.
view
||
"
links
"
)
.
push
(
function
(
result
)
{
erp5_document
=
result
;
transition_list
=
ensureArray
(
erp5_document
.
_links
.
action_workflow
);
action_list
=
ensureArray
(
erp5_document
.
_links
.
action_object_jio_action
),
clone_list
=
ensureArray
(
erp5_document
.
_links
.
action_object_clone_action
),
delete_list
=
ensureArray
(
erp5_document
.
_links
.
action_object_delete_action
);
.
push
(
function
(
jio_attachment
)
{
var
transition_list
=
ensureArray
(
jio_attachment
.
_links
.
action_workflow
),
action_list
=
ensureArray
(
jio_attachment
.
_links
.
action_object_jio_action
)
.
concat
(
ensureArray
(
jio_attachment
.
_links
.
action_object_jio_button
))
.
concat
(
ensureArray
(
jio_attachment
.
_links
.
action_object_jio_fast_input
)),
clone_list
=
ensureArray
(
jio_attachment
.
_links
.
action_object_clone_action
),
delete_list
=
ensureArray
(
jio_attachment
.
_links
.
action_object_delete_action
);
erp5_document
=
jio_attachment
;
return
RSVP
.
all
([
renderLinkList
(
gadget
,
"
Workflows
"
,
"
random
"
,
transition_list
),
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_action_js.xml
View file @
17c1341e
...
...
@@ -230,7 +230,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
965.
24781.43913.4164
2
</string>
</value>
<value>
<string>
965.
57861.34804.976
2
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -248,7 +248,7 @@
</tuple>
<state>
<tuple>
<float>
151
8183970.49
</float>
<float>
151
9987107.92
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_panel_js.js
View file @
17c1341e
...
...
@@ -61,7 +61,9 @@
if
(
erp5_document
!==
undefined
)
{
workflow_list
=
ensureArray
(
erp5_document
.
_links
.
action_workflow
);
view_list
=
ensureArray
(
erp5_document
.
_links
.
action_object_view
);
action_list
=
ensureArray
(
erp5_document
.
_links
.
action_object_jio_action
);
action_list
=
ensureArray
(
erp5_document
.
_links
.
action_object_jio_action
)
.
concat
(
ensureArray
(
erp5_document
.
_links
.
action_object_jio_fast_input
))
.
concat
(
ensureArray
(
erp5_document
.
_links
.
action_object_jio_button
));
if
(
view
===
'
view
'
)
{
for
(
i
=
0
;
i
<
view_list
.
length
;
i
+=
1
)
{
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_panel_js.xml
View file @
17c1341e
...
...
@@ -230,7 +230,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
965.3
0842.26935.32494
</string>
</value>
<value>
<string>
965.3
9086.65235.37700
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -248,7 +248,7 @@
</tuple>
<state>
<tuple>
<float>
151
8535361.1
</float>
<float>
151
9986835.7
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
product/ERP5/bootstrap/erp5_core/PathTemplateItem/portal_categories/action_type/object_jio_button.xml
0 → 100644
View file @
17c1341e
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Category"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_Access_contents_information_Permission
</string>
</key>
<value>
<tuple>
<string>
Anonymous
</string>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Associate
</string>
<string>
Auditor
</string>
<string>
Authenticated
</string>
<string>
Author
</string>
<string>
Manager
</string>
<string>
Member
</string>
<string>
Owner
</string>
<string>
Reviewer
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Add_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Add_portal_folders_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Copy_or_Move_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Delete_objects_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Modify_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_View_Permission
</string>
</key>
<value>
<tuple>
<string>
Anonymous
</string>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Associate
</string>
<string>
Auditor
</string>
<string>
Authenticated
</string>
<string>
Author
</string>
<string>
Manager
</string>
<string>
Member
</string>
<string>
Owner
</string>
<string>
Reviewer
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
action_type/object_jio_button
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
object_jio_button
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Category
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
object_jio_button
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/context_box_render.zpt
View file @
17c1341e
...
...
@@ -95,7 +95,9 @@
</span>
<span class="tool_buttons" metal:define-macro="tool_buttons">
<span class="tool_buttons"
metal:define-macro="tool_buttons"
tal:define="global empty_array python: []">
<!-- XXX: exchange_actions seems to be bad condition -->
<span class="first"
...
...
@@ -104,7 +106,9 @@
exchange_jio_actions actions/object_jio_exchange | nothing;
report_actions actions/object_report | nothing;
report_jio_actions actions/object_jio_report | nothing;
button_actions actions/object_button | nothing;
button_action actions/object_button | empty_array;
button_jio_action actions/object_jio_button | empty_array;
button_actions python: button_action + button_jio_action;
fast_input_actions actions/object_fast_input | nothing;
fast_input_jio_actions actions/object_jio_fast_input | nothing;
sort_actions actions/object_sort | nothing;
...
...
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