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
1
Issues
1
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
Roque
erp5
Commits
0e5c376c
Commit
0e5c376c
authored
Apr 18, 2024
by
Roque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_officejs: allow dev user to set custom header options
parent
91a9e528
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
25 additions
and
11 deletions
+25
-11
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_erp5_ojs_panel_js.js
...Item/web_page_module/gadget_officejs_erp5_ojs_panel_js.js
+1
-0
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_erp5_ojs_panel_js.xml
...tem/web_page_module/gadget_officejs_erp5_ojs_panel_js.xml
+3
-3
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_form_view_js.js
...plateItem/web_page_module/gadget_officejs_form_view_js.js
+15
-3
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_form_view_js.xml
...lateItem/web_page_module/gadget_officejs_form_view_js.xml
+2
-2
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_action_officejs_js.js
...eb_page_module/gadget_officejs_page_action_officejs_js.js
+1
-0
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_action_officejs_js.xml
...b_page_module/gadget_officejs_page_action_officejs_js.xml
+3
-3
No files found.
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_erp5_ojs_panel_js.js
View file @
0e5c376c
...
...
@@ -22,6 +22,7 @@
.
getElementById
(
"
panel-template-body-desktop
"
)
.
innerHTML
);
//TODO this is the same in action_officejs page, move to common
function
getElementList
(
gadget
,
element_list
)
{
var
i
=
0
,
element_info_list
=
[],
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_erp5_ojs_panel_js.xml
View file @
0e5c376c
...
...
@@ -219,7 +219,7 @@
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<
string>
zope
</string
>
</value>
<value>
<
unicode>
zope
</unicode
>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
...
...
@@ -233,7 +233,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
10
01.57742.17876.27579
</string>
</value>
<value>
<string>
10
14.1943.59170.64648
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -253,7 +253,7 @@
</tuple>
<state>
<tuple>
<float>
1
658943108.94
</float>
<float>
1
713536268.81
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_form_view_js.js
View file @
0e5c376c
...
...
@@ -315,7 +315,7 @@
.
declareMethod
(
"
renderSubGadget
"
,
function
(
options
,
subgadget
,
form_json
)
{
var
gadget
=
this
,
erp5_document
=
form_json
.
erp5_document
,
portal_type_dict
=
form_json
.
form_definition
.
portal_type_dict
,
page_title
=
''
;
page_title
=
''
,
header_dict
;
if
(
options
.
doc
&&
options
.
doc
.
title
)
{
page_title
=
options
.
doc
.
title
;
}
else
if
(
options
.
doc
&&
options
.
doc
.
header_title
)
{
...
...
@@ -367,7 +367,7 @@
return
gadget
.
getUrlForList
(
url_for_parameter_list
);
})
.
push
(
function
(
url_list
)
{
var
header_dict
=
{
"
page_title
"
:
page_title
};
header_dict
=
{
"
page_title
"
:
page_title
};
if
(
options
.
form_type
===
'
dialog
'
)
{
//TODO: find correct url
header_dict
.
cancel_url
=
url_list
[
6
];
...
...
@@ -406,7 +406,19 @@
}
}
}
return
gadget
.
updateHeader
(
header_dict
);
return
gadget
.
declareGadget
(
portal_type_dict
.
custom_header
);
})
.
push
(
function
(
header_gadget
)
{
return
header_gadget
.
getOptions
(
portal_type_dict
,
options
,
header_dict
);
},
function
(
error
)
{
if
(
!
portal_type_dict
.
custom_header
)
{
return
header_dict
;
}
else
{
throw
error
;
}
})
.
push
(
function
(
header_options
)
{
return
gadget
.
updateHeader
(
header_options
);
});
});
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_form_view_js.xml
View file @
0e5c376c
...
...
@@ -258,7 +258,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
1015.
54474.36356.6365
</string>
</value>
<value>
<string>
1015.
64633.24396.51677
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -278,7 +278,7 @@
</tuple>
<state>
<tuple>
<float>
171
2846175.79
</float>
<float>
171
3455747.66
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_action_officejs_js.js
View file @
0e5c376c
...
...
@@ -36,6 +36,7 @@
);
}
//TODO this is the same in ojs_panel, move to common
function
getHTMLElementList
(
gadget
,
element_list
)
{
var
i
=
0
,
element_info_list
=
[],
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_action_officejs_js.xml
View file @
0e5c376c
...
...
@@ -222,7 +222,7 @@
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<
string>
zope
</string
>
</value>
<value>
<
unicode>
zope
</unicode
>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
...
...
@@ -236,7 +236,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
979.63524.32203.29269
</string>
</value>
<value>
<string>
1015.45957.31009.8925
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -256,7 +256,7 @@
</tuple>
<state>
<tuple>
<float>
1
574423701.42
</float>
<float>
1
713536281.01
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
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