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
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
Léo-Paul Géneau
slapos.core
Commits
ab126a64
Commit
ab126a64
authored
May 11, 2018
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_jio: Load events and support number from json schema.
parent
cfceef59
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
7 deletions
+49
-7
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
+9
-5
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
+40
-2
No files found.
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_parameter_form_js.js
View file @
ab126a64
...
...
@@ -168,6 +168,8 @@
if
(
json_field
.
type
===
"
integer
"
)
{
input
.
type
=
"
number
"
;
}
else
if
(
json_field
.
type
===
"
number
"
)
{
input
.
type
=
"
number
"
;
}
else
{
input
.
type
=
"
text
"
;
}
...
...
@@ -372,6 +374,7 @@
}
else
{
$
(
element
).
addClass
(
"
slapos-parameter-dict-key-colapse
"
);
}
console
.
log
(
"
COLLAPSED
"
);
return
element
;
}
...
...
@@ -426,6 +429,7 @@
}
for
(
i
=
0
;
i
<
label_list
.
length
;
i
=
i
+
1
)
{
console
.
log
(
i
);
promise_list
.
push
(
loopEventListener
(
label_list
[
i
],
'
click
'
,
...
...
@@ -783,7 +787,7 @@
var
i
,
div_list
=
gadget
.
element
.
querySelectorAll
(
'
.slapos-parameter-dict-key > div
'
),
label_list
=
gadget
.
element
.
querySelectorAll
(
'
label.slapos-parameter-dict-key
'
);
console
.
log
(
"
Collapse paramaters
"
);
//
console.log("Collapse paramaters");
for
(
i
=
0
;
i
<
div_list
.
length
;
i
=
i
+
1
)
{
$
(
div_list
[
i
]).
hide
();
...
...
@@ -794,9 +798,9 @@
}
return
gadget
;
})
.
push
(
function
()
{
console
.
log
(
"
FINISHED TO RENDER, RETURNING THE GADGET
"
);
return
gadget
;
.
push
(
function
(
gadget
)
{
/* console.log("FINISHED TO RENDER, RETURNING THE GADGET"); */
return
loadEventList
(
gadget
)
;
})
.
fail
(
function
(
error
)
{
...
...
@@ -808,7 +812,7 @@
return
gadget
.
renderFailoverTextArea
(
parameter_xml
,
error
.
toString
())
.
push
(
function
()
{
error
=
undefined
;
return
gadget
;
return
loadEventList
(
gadget
)
;
});
});
})
...
...
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_parameter_form_js.xml
View file @
ab126a64
...
...
@@ -39,6 +39,17 @@
</tuple>
</value>
</item>
<item>
<key>
<string>
_Copy_or_Move_Permission
</string>
</key>
<value>
<list>
<string>
Manager
</string>
<string>
Authenticated
</string>
<string>
Developer
</string>
<string>
Owner
</string>
</list>
</value>
</item>
<item>
<key>
<string>
_Modify_portal_content_Permission
</string>
</key>
<value>
...
...
@@ -75,6 +86,14 @@
<none/>
</value>
</item>
<item>
<key>
<string>
creators
</string>
</key>
<value>
<tuple>
<string>
zope
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
gadget_erp5_page_slap_parameter_form.js
</string>
</value>
...
...
@@ -93,6 +112,25 @@
<key>
<string>
language
</string>
</key>
<value>
<string>
en
</string>
</value>
</item>
<item>
<key>
<string>
modification_date
</string>
</key>
<value>
<object>
<klass>
<global
name=
"DateTime"
module=
"DateTime.DateTime"
/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>
1523884648.42
</float>
<string>
UTC
</string>
</tuple>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Web Script
</string>
</value>
...
...
@@ -236,7 +274,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
96
6.29810.18989.64802
</string>
</value>
<value>
<string>
96
7.30809.39786.4795
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -254,7 +292,7 @@
</tuple>
<state>
<tuple>
<float>
152
2149313.98
</float>
<float>
152
6066609.97
</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