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
Levin Zimmermann
erp5
Commits
ad42cf34
Commit
ad42cf34
authored
Jan 11, 2022
by
Gabriel Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_renderjs_ui: propagate parameter to enable graphic
parent
c8120676
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
10 deletions
+14
-10
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_form_js.js
...thTemplateItem/web_page_module/rjs_gadget_erp5_form_js.js
+3
-1
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_form_js.xml
...hTemplateItem/web_page_module/rjs_gadget_erp5_form_js.xml
+2
-2
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_listbox_js.js
...emplateItem/web_page_module/rjs_gadget_erp5_listbox_js.js
+4
-2
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_listbox_js.xml
...mplateItem/web_page_module/rjs_gadget_erp5_listbox_js.xml
+2
-2
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_form_list_js.js
...teItem/web_page_module/rjs_gadget_erp5_pt_form_list_js.js
+1
-1
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_form_list_js.xml
...eItem/web_page_module/rjs_gadget_erp5_pt_form_list_js.xml
+2
-2
No files found.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_form_js.js
View file @
ad42cf34
...
@@ -34,7 +34,8 @@
...
@@ -34,7 +34,8 @@
extended_search
:
(
is_first_bottom_listbox
&&
(
form_definition
.
extended_search
)),
// searchfield specific
extended_search
:
(
is_first_bottom_listbox
&&
(
form_definition
.
extended_search
)),
// searchfield specific
field_type
:
rendered_document
[
field_name
].
type
,
field_type
:
rendered_document
[
field_name
].
type
,
label
:
((
group_name
!==
"
bottom
"
)
&&
(
rendered_document
[
field_name
].
title
.
length
>
0
)),
// no label for bottom group and field without title
label
:
((
group_name
!==
"
bottom
"
)
&&
(
rendered_document
[
field_name
].
title
.
length
>
0
)),
// no label for bottom group and field without title
field_json
:
rendered_document
[
field_name
]
// pass
field_json
:
rendered_document
[
field_name
],
// pass
enable_graphic
:
modification_dict
.
enable_graphic
};
};
// XXX: what is the purpose of this?
// XXX: what is the purpose of this?
...
@@ -190,6 +191,7 @@
...
@@ -190,6 +191,7 @@
return
this
.
changeState
({
return
this
.
changeState
({
erp5_document
:
options
.
erp5_document
,
erp5_document
:
options
.
erp5_document
,
form_definition
:
options
.
form_definition
,
form_definition
:
options
.
form_definition
,
enable_graphic
:
options
.
enable_graphic
,
jio_key
:
options
.
jio_key
,
jio_key
:
options
.
jio_key
,
hash
:
hash
,
hash
:
hash
,
view
:
options
.
view
,
view
:
options
.
view
,
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_form_js.xml
View file @
ad42cf34
...
@@ -234,7 +234,7 @@
...
@@ -234,7 +234,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
99
1.26405.47.57924
</string>
</value>
<value>
<string>
99
7.28933.33599.15445
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -252,7 +252,7 @@
...
@@ -252,7 +252,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
16
18519262.64
</float>
<float>
16
41917242.86
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_listbox_js.js
View file @
ad42cf34
...
@@ -581,6 +581,7 @@
...
@@ -581,6 +581,7 @@
show_clipboard_action
:
false
,
show_clipboard_action
:
false
,
// graphic
// graphic
enable_graphic
:
options
.
enable_graphic
,
graphic_type
:
graphic_type
graphic_type
:
graphic_type
});
});
});
});
...
@@ -1196,7 +1197,7 @@
...
@@ -1196,7 +1197,7 @@
})
})
);
);
}
}
if
(
!
gadget
.
state
.
extended_search
)
{
if
(
!
gadget
.
state
.
extended_search
&&
gadget
.
state
.
enable_graphic
)
{
domsugar
(
gadget
.
element
.
querySelector
(
"
.graphic_section
"
),
[
domsugar
(
gadget
.
element
.
querySelector
(
"
.graphic_section
"
),
[
domsugar
(
"
select
"
,
{
domsugar
(
"
select
"
,
{
"
name
"
:
"
GraphicSelect
"
,
"
name
"
:
"
GraphicSelect
"
,
...
@@ -1208,6 +1209,7 @@
...
@@ -1208,6 +1209,7 @@
});
});
});
});
if
(
!
gadget
.
state
.
extended_search
&&
if
(
!
gadget
.
state
.
extended_search
&&
gadget
.
state
.
enable_graphic
&&
gadget
.
state
.
graphic_type
&&
gadget
.
state
.
graphic_type
&&
gadget
.
state
.
graphic_type
!==
""
)
{
gadget
.
state
.
graphic_type
!==
""
)
{
result_queue
result_queue
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_listbox_js.xml
View file @
ad42cf34
...
@@ -240,7 +240,7 @@
...
@@ -240,7 +240,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
997.2
1666.38260.2918
</string>
</value>
<value>
<string>
997.2
8008.46664.51182
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -258,7 +258,7 @@
...
@@ -258,7 +258,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
1641
490303.25
</float>
<float>
1641
918364.42
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_form_list_js.js
View file @
ad42cf34
...
@@ -135,7 +135,7 @@
...
@@ -135,7 +135,7 @@
if
(
form_gadget
.
state
.
extended_search
)
{
if
(
form_gadget
.
state
.
extended_search
)
{
form_options
.
form_definition
.
extended_search
=
form_gadget
.
state
.
extended_search
;
form_options
.
form_definition
.
extended_search
=
form_gadget
.
state
.
extended_search
;
}
}
form_options
.
enable_graphic
=
true
;
return
erp5_form
.
render
(
form_options
);
return
erp5_form
.
render
(
form_options
);
})
})
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_form_list_js.xml
View file @
ad42cf34
...
@@ -234,7 +234,7 @@
...
@@ -234,7 +234,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
9
79.58033.54588.53418
</string>
</value>
<value>
<string>
9
97.28531.29725.31266
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -252,7 +252,7 @@
...
@@ -252,7 +252,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
1
574153832.0
</float>
<float>
1
641893404.13
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</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