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
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xavier Thompson
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 @@
...
@@ -68,21 +68,20 @@
/////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////
.
declareMethod
(
"
render
"
,
function
(
options
)
{
.
declareMethod
(
"
render
"
,
function
(
options
)
{
var
gadget
=
this
,
var
gadget
=
this
,
erp5_document
,
erp5_document
;
transition_list
,
action_list
,
clone_list
,
delete_list
;
// Get the whole view as attachment because actions can change based on
// 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".
// what view we are at. If no view available than fallback to "links".
return
gadget
.
jio_getAttachment
(
options
.
jio_key
,
options
.
view
||
"
links
"
)
return
gadget
.
jio_getAttachment
(
options
.
jio_key
,
options
.
view
||
"
links
"
)
.
push
(
function
(
result
)
{
.
push
(
function
(
jio_attachment
)
{
erp5_document
=
result
;
var
transition_list
=
ensureArray
(
jio_attachment
.
_links
.
action_workflow
),
transition_list
=
ensureArray
(
erp5_document
.
_links
.
action_workflow
);
action_list
=
ensureArray
(
jio_attachment
.
_links
.
action_object_jio_action
)
action_list
=
ensureArray
(
erp5_document
.
_links
.
action_object_jio_action
),
.
concat
(
ensureArray
(
jio_attachment
.
_links
.
action_object_jio_button
))
clone_list
=
ensureArray
(
erp5_document
.
_links
.
action_object_clone_action
),
.
concat
(
ensureArray
(
jio_attachment
.
_links
.
action_object_jio_fast_input
)),
delete_list
=
ensureArray
(
erp5_document
.
_links
.
action_object_delete_action
);
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
([
return
RSVP
.
all
([
renderLinkList
(
gadget
,
"
Workflows
"
,
"
random
"
,
transition_list
),
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 @@
...
@@ -230,7 +230,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<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>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -248,7 +248,7 @@
...
@@ -248,7 +248,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
151
8183970.49
</float>
<float>
151
9987107.92
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_panel_js.js
View file @
17c1341e
...
@@ -61,7 +61,9 @@
...
@@ -61,7 +61,9 @@
if
(
erp5_document
!==
undefined
)
{
if
(
erp5_document
!==
undefined
)
{
workflow_list
=
ensureArray
(
erp5_document
.
_links
.
action_workflow
);
workflow_list
=
ensureArray
(
erp5_document
.
_links
.
action_workflow
);
view_list
=
ensureArray
(
erp5_document
.
_links
.
action_object_view
);
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
'
)
{
if
(
view
===
'
view
'
)
{
for
(
i
=
0
;
i
<
view_list
.
length
;
i
+=
1
)
{
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 @@
...
@@ -230,7 +230,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<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>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -248,7 +248,7 @@
...
@@ -248,7 +248,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
151
8535361.1
</float>
<float>
151
9986835.7
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</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 @@
...
@@ -95,7 +95,9 @@
</span>
</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 -->
<!-- XXX: exchange_actions seems to be bad condition -->
<span class="first"
<span class="first"
...
@@ -104,7 +106,9 @@
...
@@ -104,7 +106,9 @@
exchange_jio_actions actions/object_jio_exchange | nothing;
exchange_jio_actions actions/object_jio_exchange | nothing;
report_actions actions/object_report | nothing;
report_actions actions/object_report | nothing;
report_jio_actions actions/object_jio_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_actions actions/object_fast_input | nothing;
fast_input_jio_actions actions/object_jio_fast_input | nothing;
fast_input_jio_actions actions/object_jio_fast_input | nothing;
sort_actions actions/object_sort | 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