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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gabriel Monnerat
erp5
Commits
4703e930
Commit
4703e930
authored
Nov 23, 2020
by
Gabriel Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_renderjs_ui: Move development actions from panel to tab
parent
f3320c75
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
37 additions
and
122 deletions
+37
-122
bt5/erp5_web_renderjs_ui/ActionTemplateItem/portal_types/portal_actions/jump_to_portal_type.xml
...eItem/portal_types/portal_actions/jump_to_portal_type.xml
+0
-86
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
+4
-24
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
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_tabpage_js.js
...lateItem/web_page_module/rjs_gadget_erp5_pt_tabpage_js.js
+28
-6
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_tabpage_js.xml
...ateItem/web_page_module/rjs_gadget_erp5_pt_tabpage_js.xml
+2
-2
bt5/erp5_web_renderjs_ui/bt/template_action_path_list
bt5/erp5_web_renderjs_ui/bt/template_action_path_list
+1
-2
No files found.
bt5/erp5_web_renderjs_ui/ActionTemplateItem/portal_types/portal_actions/jump_to_portal_type.xml
deleted
100644 → 0
View file @
f3320c75
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ActionInformation"
module=
"Products.CMFCore.ActionInformation"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
category
</string>
</key>
<value>
<string>
object_jio_raw
</string>
</value>
</item>
<item>
<key>
<string>
condition
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
icon
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
jump_to_portal_type
</string>
</value>
</item>
<item>
<key>
<string>
permissions
</string>
</key>
<value>
<tuple>
<string>
Manage portal
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
priority
</string>
</key>
<value>
<float>
1.0
</float>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Edit Portal Type
</string>
</value>
</item>
<item>
<key>
<string>
visible
</string>
</key>
<value>
<int>
1
</int>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"Expression"
module=
"Products.CMFCore.Expression"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
text
</string>
</key>
<value>
<string>
python: "%s?ignore_layout:int=1" % portal.portal_types.getTypeInfo(object).absolute_url_path()
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"Expression"
module=
"Products.CMFCore.Expression"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
text
</string>
</key>
<value>
<string>
python: portal.portal_types.getTypeInfo(object) and portal.portal_types.getTypeInfo(object).Base_getSourceVisibility()
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_panel_js.js
View file @
4703e930
...
...
@@ -71,7 +71,6 @@
view_list
,
action_list
,
jump_list
,
raw_list
,
i
;
if
(
visible
===
undefined
)
{
...
...
@@ -91,7 +90,6 @@
.
concat
(
ensureArray
(
erp5_document
.
_links
.
action_object_jio_button
))
.
concat
(
ensureArray
(
erp5_document
.
_links
.
action_object_jio_fast_input
));
jump_list
=
ensureArray
(
erp5_document
.
_links
.
action_object_jio_jump
);
raw_list
=
ensureArray
(
erp5_document
.
_links
.
action_object_jio_raw
);
if
(
view
===
'
view
'
)
{
for
(
i
=
0
;
i
<
view_list
.
length
;
i
+=
1
)
{
...
...
@@ -117,8 +115,8 @@
view_list
=
JSON
.
stringify
(
view_list
);
action_list
=
JSON
.
stringify
(
action_list
);
jump_list
=
JSON
.
stringify
(
jump_list
);
raw_list
=
JSON
.
stringify
(
raw_list
);
}
return
context
.
getUrlParameter
(
'
editable
'
)
.
push
(
function
(
editable
)
{
return
context
.
changeState
({
...
...
@@ -128,7 +126,6 @@
view_list
:
view_list
,
action_list
:
action_list
,
jump_list
:
jump_list
,
raw_list
:
raw_list
,
global
:
true
,
jio_key
:
jio_key
,
view
:
view
,
...
...
@@ -254,7 +251,6 @@
modification_dict
.
hasOwnProperty
(
"
workflow_list
"
)
||
modification_dict
.
hasOwnProperty
(
"
action_list
"
)
||
modification_dict
.
hasOwnProperty
(
"
jump_list
"
)
||
modification_dict
.
hasOwnProperty
(
"
raw_list
"
)
||
modification_dict
.
hasOwnProperty
(
"
jio_key
"
)
||
modification_dict
.
hasOwnProperty
(
"
view_list
"
)))
{
if
(
this
.
state
.
view_list
===
undefined
)
{
...
...
@@ -266,8 +262,7 @@
parameter_list
=
[],
view_list
=
JSON
.
parse
(
gadget
.
state
.
view_list
),
action_list
=
JSON
.
parse
(
gadget
.
state
.
action_list
),
jump_list
=
JSON
.
parse
(
gadget
.
state
.
jump_list
),
raw_list
=
JSON
.
parse
(
gadget
.
state
.
raw_list
);
jump_list
=
JSON
.
parse
(
gadget
.
state
.
jump_list
);
workflow_list
=
JSON
.
parse
(
gadget
.
state
.
workflow_list
);
for
(
i
=
0
;
i
<
view_list
.
length
;
i
+=
1
)
{
...
...
@@ -306,18 +301,10 @@
}
});
}
for
(
i
=
0
;
i
<
raw_list
.
length
;
i
+=
1
)
{
parameter_list
.
push
({
command
:
'
raw
'
,
options
:
{
url
:
raw_list
[
i
].
href
}
});
}
return
RSVP
.
all
([
gadget
.
getUrlForList
(
parameter_list
),
gadget
.
getTranslationList
([
'
Views
'
,
'
Workflows
'
,
'
Actions
'
,
'
Jumps
'
,
'
Developer Mode
'
])
'
Jumps
'
])
]);
})
.
push
(
function
(
result_list
)
{
...
...
@@ -325,8 +312,7 @@
dl_fragment
=
document
.
createDocumentFragment
(),
view_list
=
JSON
.
parse
(
gadget
.
state
.
view_list
),
action_list
=
JSON
.
parse
(
gadget
.
state
.
action_list
),
jump_list
=
JSON
.
parse
(
gadget
.
state
.
jump_list
),
raw_list
=
JSON
.
parse
(
gadget
.
state
.
raw_list
);
jump_list
=
JSON
.
parse
(
gadget
.
state
.
jump_list
);
appendDt
(
dl_fragment
,
result_list
[
1
][
0
],
'
eye
'
,
view_list
,
result_list
[
0
],
0
);
...
...
@@ -342,12 +328,6 @@
jump_list
,
result_list
[
0
],
view_list
.
length
+
workflow_list
.
length
+
action_list
.
length
);
if
(
raw_list
.
length
!==
0
)
{
appendDt
(
dl_fragment
,
result_list
[
1
][
4
],
'
plane
'
,
raw_list
,
result_list
[
0
],
view_list
.
length
+
workflow_list
.
length
+
action_list
.
length
);
}
dl_element
=
gadget
.
element
.
querySelector
(
"
dl
"
);
while
(
dl_element
.
firstChild
)
{
dl_element
.
removeChild
(
dl_element
.
firstChild
);
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_panel_js.xml
View file @
4703e930
...
...
@@ -234,7 +234,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
988.
3902.36248.12305
</string>
</value>
<value>
<string>
988.
9647.45049.61832
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -252,7 +252,7 @@
</tuple>
<state>
<tuple>
<float>
160
5718582.87
</float>
<float>
160
6061825.63
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_tabpage_js.js
View file @
4703e930
...
...
@@ -96,9 +96,11 @@
view_list
=
[],
tab_list
=
[],
jump_action_list
=
[],
raw_action_list
=
[],
breadcrumb_action_list
=
[],
erp5_document
,
jump_list
;
jump_list
,
raw_list
;
return
gadget
.
jio_getAttachment
(
gadget
.
state
.
jio_key
,
"
links
"
)
...
...
@@ -108,6 +110,7 @@
erp5_document
=
result
;
view_list
=
ensureArray
(
erp5_document
.
_links
.
view
);
jump_list
=
ensureArray
(
erp5_document
.
_links
.
action_object_jio_jump
);
raw_list
=
ensureArray
(
erp5_document
.
_links
.
action_object_jio_raw
);
for
(
i
=
0
;
i
<
view_list
.
length
;
i
+=
1
)
{
url_for_kw_list
.
push
({
command
:
'
display_with_history
'
,
options
:
{
...
...
@@ -123,6 +126,14 @@
view
:
jump_list
[
i
].
href
}});
}
for
(
i
=
0
;
i
<
raw_list
.
length
;
i
+=
1
)
{
url_for_kw_list
.
push
({
command
:
'
raw
'
,
options
:
{
url
:
raw_list
[
i
].
href
}
});
}
url_for_kw_list
.
push
({
command
:
'
cancel_dialog_with_history
'
});
...
...
@@ -131,14 +142,15 @@
_
:
modifyBreadcrumbList
(
gadget
,
erp5_document
.
_links
.
parent
||
"
#
"
,
breadcrumb_action_list
),
translation_list
:
gadget
.
getTranslationList
([
'
Views
'
,
'
Jumps
'
,
'
Breadcrumb
'
]),
translation_list
:
gadget
.
getTranslationList
([
'
Views
'
,
'
Jumps
'
,
'
Breadcrumb
'
,
'
Developer mode
'
]),
page_title
:
calculatePageTitle
(
gadget
,
erp5_document
)
});
})
.
push
(
function
(
result_dict
)
{
var
i
,
j
=
0
;
j
=
0
,
sub_element_list
;
for
(
i
=
0
;
i
<
view_list
.
length
;
i
+=
1
)
{
tab_list
.
push
({
...
...
@@ -154,12 +166,22 @@
});
j
+=
1
;
}
domsugar
(
gadget
.
element
,
[
for
(
i
=
0
;
i
<
raw_list
.
length
;
i
+=
1
)
{
raw_action_list
.
push
({
title
:
raw_list
[
i
].
title
,
link
:
result_dict
.
url_list
[
j
]
});
j
+=
1
;
}
sub_element_list
=
[
generateSection
(
result_dict
.
translation_list
[
0
],
'
eye
'
,
tab_list
),
generateSection
(
result_dict
.
translation_list
[
1
],
'
plane
'
,
jump_action_list
),
generateSection
(
result_dict
.
translation_list
[
2
],
'
ellipsis-v
'
,
breadcrumb_action_list
)
]);
];
if
(
raw_action_list
.
length
>
0
)
{
sub_element_list
.
push
(
generateSection
(
result_dict
.
translation_list
[
3
],
'
plane
'
,
raw_action_list
))
}
domsugar
(
gadget
.
element
,
sub_element_list
);
return
gadget
.
updateHeader
({
back_url
:
result_dict
.
url_list
[
j
],
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_tabpage_js.xml
View file @
4703e930
...
...
@@ -234,7 +234,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
98
1.62315.62619.21640
</string>
</value>
<value>
<string>
98
8.9648.23878.62139
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -252,7 +252,7 @@
</tuple>
<state>
<tuple>
<float>
1
582128721.85
</float>
<float>
1
606132898.2
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_web_renderjs_ui/bt/template_action_path_list
View file @
4703e930
...
...
@@ -11,5 +11,4 @@ Web Site | create_translation_data
Web Style | version_view
Web Style | view
Web Style | view_editor
Web Style | web_view
portal_actions | jump_to_portal_type
\ No newline at end of file
Web Style | web_view
\ 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