Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
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
1
Merge Requests
1
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
Romain Courteaud
slapos.core
Commits
92aef156
Commit
92aef156
authored
Aug 29, 2022
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_jio: accept parameters as provided by GadgetField
parent
ce3425d8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_parameter_form_js.js
...age_module/rjs_gadget_erp5_page_slap_parameter_form_js.js
+10
-10
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_parameter_form_js.xml
...ge_module/rjs_gadget_erp5_page_slap_parameter_form_js.xml
+2
-2
No files found.
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_parameter_form_js.js
View file @
92aef156
...
@@ -1076,24 +1076,24 @@
...
@@ -1076,24 +1076,24 @@
.
declareMethod
(
'
render
'
,
function
(
options
)
{
.
declareMethod
(
'
render
'
,
function
(
options
)
{
var
restricted_softwaretype
=
false
,
var
restricted_softwaretype
=
false
,
software_type_list
=
[],
software_type_list
=
[],
parameter_hash
=
options
.
value
.
parameter
.
parameter_hash
,
parameter_hash
=
options
.
parameter_hash
,
// XXX Do we directly get parameter_xml parameter?
// XXX Do we directly get parameter_xml parameter?
parameter_xml
=
options
.
value
.
parameter
.
parameter_xml
;
parameter_xml
=
options
.
parameter_xml
;
if
(
parameter_hash
!==
undefined
)
{
if
(
parameter_hash
!==
undefined
)
{
// A JSON where provided via gadgetfield
// A JSON where provided via gadgetfield
parameter_xml
=
atob
(
parameter_hash
);
parameter_xml
=
atob
(
parameter_hash
);
}
}
if
(
options
.
value
.
parameter
.
software_type_list
!==
undefined
)
{
if
(
options
.
software_type_list
!==
undefined
)
{
software_type_list
=
options
.
value
.
parameter
.
software_type_list
;
software_type_list
=
options
.
software_type_list
;
}
}
if
(
options
.
value
.
parameter
.
softwaretype
!==
undefined
)
{
if
(
options
.
softwaretype
!==
undefined
)
{
restricted_softwaretype
=
true
;
restricted_softwaretype
=
true
;
// exceptional situation where the default item must be in
// exceptional situation where the default item must be in
// the list.
// the list.
software_type_list
.
push
(
options
.
value
.
parameter
.
softwaretype
);
software_type_list
.
push
(
options
.
softwaretype
);
}
}
...
@@ -1102,13 +1102,13 @@
...
@@ -1102,13 +1102,13 @@
// hidden: options.hidden,
// hidden: options.hidden,
// key: options.key,
// key: options.key,
serialisation
:
options
.
serialisation
,
serialisation
:
options
.
serialisation
,
json_url
:
options
.
value
.
parameter
.
json_url
,
json_url
:
options
.
json_url
,
parameter_xml
:
parameter_xml
,
parameter_xml
:
parameter_xml
,
restricted_softwaretype
:
restricted_softwaretype
,
restricted_softwaretype
:
restricted_softwaretype
,
shared
:
options
.
value
.
parameter
.
shared
,
softwaretype
:
options
.
value
.
parameter
.
softwaretype
,
software_type_list
:
software_type_list
,
software_type_list
:
software_type_list
,
softwareindex
:
options
.
value
.
parameter
.
softwareindex
,
shared
:
options
.
shared
,
softwaretype
:
options
.
softwaretype
,
softwareindex
:
options
.
softwareindex
,
editable
:
options
.
editable
,
editable
:
options
.
editable
,
// Force refresh in any case
// Force refresh in any case
render_timestamp
:
new
Date
().
getTime
()
render_timestamp
:
new
Date
().
getTime
()
...
...
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_parameter_form_js.xml
View file @
92aef156
...
@@ -280,7 +280,7 @@
...
@@ -280,7 +280,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
100
4.35604.19918.32529
</string>
</value>
<value>
<string>
100
2.33873.60935.57582
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -298,7 +298,7 @@
...
@@ -298,7 +298,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
166
9324961.21
</float>
<float>
166
1442796.03
</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