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
139
Merge Requests
139
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
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
3fdc0c82
Commit
3fdc0c82
authored
Jun 24, 2019
by
Roque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_officejs: layout configuration for header Add button
parent
995a37d4
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
8 deletions
+29
-8
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_common_utils_js.js
...teItem/web_page_module/gadget_officejs_common_utils_js.js
+6
-1
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_common_utils_js.xml
...eItem/web_page_module/gadget_officejs_common_utils_js.xml
+2
-2
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_form_view_js.js
...plateItem/web_page_module/gadget_officejs_form_view_js.js
+3
-1
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_site_module/officejs_discussion_tool/app.xml
...lateItem/web_site_module/officejs_discussion_tool/app.xml
+16
-2
No files found.
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_common_utils_js.js
View file @
3fdc0c82
...
...
@@ -191,7 +191,8 @@
form_definition
,
query_type
,
query_parent
,
query_reference
;
query_reference
,
hide_add_button
;
query_reference
=
new
SimpleQuery
({
key
:
"
reference
"
,
operator
:
""
,
...
...
@@ -246,6 +247,10 @@
.
push
(
function
(
actions_views_dict
)
{
form_definition
.
has_more_views
=
Object
.
keys
(
actions_views_dict
.
views
).
length
>
1
;
form_definition
.
has_more_actions
=
Object
.
keys
(
actions_views_dict
.
actions
).
length
>
0
;
return
gadget
.
getSetting
(
'
hide_header_add_button
'
);
})
.
push
(
function
(
hide_add_button_setting
)
{
form_definition
.
hide_add_button
=
hide_add_button_setting
===
"
1
"
;
return
form_definition
;
});
});
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_common_utils_js.xml
View file @
3fdc0c82
...
...
@@ -269,7 +269,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
976.3
2757.54510.63163
</string>
</value>
<value>
<string>
976.3
4276.53444.54016
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -287,7 +287,7 @@
</tuple>
<state>
<tuple>
<float>
156
0953642.79
</float>
<float>
156
1044808.85
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_form_view_js.js
View file @
3fdc0c82
...
...
@@ -198,7 +198,9 @@
page_title
=
options
.
doc
.
title
;
}
erp5_document
=
form_json
.
erp5_document
;
if
(
form_json
.
form_definition
.
allowed_sub_types_list
&&
form_json
.
form_definition
.
allowed_sub_types_list
.
length
>
0
)
{
if
(
form_json
.
form_definition
.
allowed_sub_types_list
&&
form_json
.
form_definition
.
allowed_sub_types_list
.
length
>
0
&&
!
form_json
.
form_definition
.
hide_add_button
)
{
url_for_parameter_list
.
push
({
command
:
'
change
'
,
options
:
{
page
:
"
create_document
"
,
jio_key
:
options
.
jio_key
,
portal_type
:
options
.
portal_type
,
allowed_sub_types_list
:
form_json
.
form_definition
.
allowed_sub_types_list
}});
add_url
=
true
;
}
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_form_view_js.xml
View file @
3fdc0c82
...
...
@@ -269,7 +269,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
976.
29933.16046.63863
</string>
</value>
<value>
<string>
976.
34270.16303.42564
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -287,7 +287,7 @@
</tuple>
<state>
<tuple>
<float>
156
0784206.19
</float>
<float>
156
1044820.12
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_officejs/PathTemplateItem/web_site_module/officejs_discussion_tool/app.xml
View file @
3fdc0c82
...
...
@@ -385,6 +385,16 @@
<value>
<string>
lines
</string>
</value>
</item>
</dictionary>
<dictionary>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
configuration_hide_header_add_button
</string>
</value>
</item>
<item>
<key>
<string>
type
</string>
</key>
<value>
<string>
int
</string>
</value>
</item>
</dictionary>
</tuple>
</value>
</item>
...
...
@@ -472,6 +482,10 @@
<key>
<string>
configuration_header_jump_button
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
configuration_hide_header_add_button
</string>
</key>
<value>
<int>
1
</int>
</value>
</item>
<item>
<key>
<string>
configuration_jio_gadget_url
</string>
</key>
<value>
<string>
gadget_ojs_local_jio.html
</string>
</value>
...
...
@@ -773,7 +787,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
976.3
2636.4663.31641
</string>
</value>
<value>
<string>
976.3
4272.58294.24337
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -791,7 +805,7 @@
</tuple>
<state>
<tuple>
<float>
156
0946399.88
</float>
<float>
156
1044558.86
</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