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
138
Merge Requests
138
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
f46c50ec
Commit
f46c50ec
authored
Jan 18, 2022
by
Gabriel Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_renderjs_ui: Add button to display graphic selection
parent
3cc347f7
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
43 additions
and
9 deletions
+43
-9
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
+3
-0
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_html.html
...em/web_page_module/rjs_gadget_erp5_pt_form_list_html.html
+16
-3
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_form_list_html.xml
...tem/web_page_module/rjs_gadget_erp5_pt_form_list_html.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
+18
-0
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_listbox_js.js
View file @
f46c50ec
...
...
@@ -14,6 +14,9 @@
"
translated_validation_state_title
"
];
if
(
!
option_list
.
length
)
{
return
;
}
for
(
i
=
0
;
i
<
option_list
.
length
;
i
+=
1
)
{
if
(
default_option_list
.
indexOf
(
option_list
[
i
][
0
])
!==
-
1
)
{
return
option_list
[
i
][
0
];
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_listbox_js.xml
View file @
f46c50ec
...
...
@@ -240,7 +240,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
997.3236
1.48448.8823
</string>
</value>
<value>
<string>
997.3236
4.32479.38109
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -258,7 +258,7 @@
</tuple>
<state>
<tuple>
<float>
1642
122989.73
</float>
<float>
1642
458074.31
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_form_list_html.html
View file @
f46c50ec
...
...
@@ -30,8 +30,22 @@
<!-- XXX action, method, fieldset -->
<form>
<button
type=
"submit"
class=
"ui-icon-action ui-btn-icon-right ui-screen-hidden"
>
Submit
</button>
<button
type=
"submit"
class=
"ui-icon-action ui-btn-icon-right ui-screen-hidden"
>
Submit
</button>
<!-- XXX Just a draft -->
<div
class=
"graphic-button"
style=
"float: left;padding-top: 6pt;"
>
<div>
<button
class=
"ui-btn-icon-notext ui-icon-bar-chart-o display-graphic"
style=
"border: 1px solid rgba(0, 0, 0, 0.14);
border-radius: 0.325em;
background-color: #FFFFFF;
margin-right: 6pt;
max-width: 6em;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
padding: 3pt;"
type=
"button"
>
Graphic
</button>
</div>
</div>
<div
data-gadget-url=
"gadget_erp5_searchfield.html"
data-gadget-scope=
"erp5_searchfield"
data-gadget-sandbox=
"public"
></div>
...
...
@@ -41,6 +55,5 @@
data-gadget-sandbox=
"public"
></div>
</form>
</body>
</html>
\ No newline at end of file
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_form_list_html.xml
View file @
f46c50ec
...
...
@@ -238,7 +238,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
9
74.48720.1486.39116
</string>
</value>
<value>
<string>
9
97.37810.8320.54442
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -256,7 +256,7 @@
</tuple>
<state>
<tuple>
<float>
1
554191230.42
</float>
<float>
1
642474757.61
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_form_list_js.js
View file @
f46c50ec
...
...
@@ -136,6 +136,13 @@
form_options
.
form_definition
.
extended_search
=
form_gadget
.
state
.
extended_search
;
}
form_options
.
enable_graphic
=
true
;
if
(
!
form_gadget
.
state
.
extended_search
)
{
form_gadget
.
element
.
querySelector
(
"
.graphic-button
"
).
classList
.
add
(
"
ui-screen-hidden
"
);
}
else
{
form_gadget
.
element
.
querySelector
(
"
.graphic-button
"
).
classList
.
remove
(
"
ui-screen-hidden
"
);
}
return
erp5_form
.
render
(
form_options
);
})
...
...
@@ -201,6 +208,17 @@
});
},
{
mutex
:
'
changestate
'
})
.
onEvent
(
'
click
'
,
function
click
(
evt
)
{
var
gadget
=
this
;
if
(
evt
.
target
.
classList
.
contains
(
"
display-graphic
"
))
{
return
gadget
.
redirect
({
command
:
"
display_with_history
"
,
options
:
{
jio_key
:
gadget
.
state
.
jio_key
}
});
}
})
.
onEvent
(
'
submit
'
,
function
submit
()
{
var
gadget
=
this
;
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_form_list_js.xml
View file @
f46c50ec
...
...
@@ -234,7 +234,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
997.
28531.29725.3126
6
</string>
</value>
<value>
<string>
997.
37922.23380.4621
6
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -252,7 +252,7 @@
</tuple>
<state>
<tuple>
<float>
164
1893404.13
</float>
<float>
164
2458450.04
</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