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
Eric Zheng
slapos.core
Commits
c4b3afcb
Commit
c4b3afcb
authored
Feb 15, 2018
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_jio: Use parameter form when request one instance
parent
d54c8b06
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
8 deletions
+18
-8
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_add_hosting_subscription_js.js
.../rjs_gadget_erp5_page_slap_add_hosting_subscription_js.js
+16
-6
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_add_hosting_subscription_js.xml
...rjs_gadget_erp5_page_slap_add_hosting_subscription_js.xml
+2
-2
No files found.
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_add_hosting_subscription_js.js
View file @
c4b3afcb
/*global window, rJS, RSVP */
/*global window, rJS, RSVP
, btoa
*/
/*jslint nomen: true, indent: 2, maxerr: 3 */
(
function
(
window
,
rJS
,
RSVP
)
{
"
use strict
"
;
...
...
@@ -66,7 +66,15 @@
]);
})
.
push
(
function
(
result
)
{
var
doc
=
result
[
1
];
var
doc
=
result
[
1
],
parameter_dict
=
{
'
parameter
'
:
{
'
json_url
'
:
doc
.
url_string
+
"
.json
"
,
//'json_url': "https://lab.node.vifib.com/nexedi/slapos/raw/master/software/kvm/software.cfg.json",
'
parameter_hash
'
:
btoa
(
'
<?xml version="1.0" encoding="utf-8" ?><instance></instance>
'
),
'
restricted_softwaretype
'
:
false
}
};
return
result
[
0
].
render
({
erp5_document
:
{
"
_embedded
"
:
{
"
_view
"
:
{
...
...
@@ -77,7 +85,7 @@
"
css_class
"
:
""
,
"
required
"
:
0
,
"
editable
"
:
0
,
"
key
"
:
"
title
"
,
"
key
"
:
"
url_string
"
,
"
hidden
"
:
0
,
"
type
"
:
"
StringField
"
},
...
...
@@ -93,15 +101,17 @@
"
type
"
:
"
StringField
"
},
"
your_text_content
"
:
{
"
description
"
:
"
The name of a document in ERP5
"
,
"
description
"
:
""
,
"
title
"
:
"
Instance Parameter
"
,
"
default
"
:
""
,
"
default
"
:
parameter_dict
,
"
css_class
"
:
""
,
"
required
"
:
1
,
"
editable
"
:
1
,
"
url
"
:
"
gadget_erp5_page_slap_parameter_form.html
"
,
"
sandbox
"
:
""
,
"
key
"
:
"
text_content
"
,
"
hidden
"
:
0
,
"
type
"
:
"
TextArea
Field
"
"
type
"
:
"
Gadget
Field
"
},
"
your_computer_guid
"
:
{
"
description
"
:
"
The name of a document in ERP5
"
,
...
...
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_add_hosting_subscription_js.xml
View file @
c4b3afcb
...
...
@@ -273,7 +273,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
96
4.4358.51456.27204
</string>
</value>
<value>
<string>
96
5.32456.3463.64409
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -291,7 +291,7 @@
</tuple>
<state>
<tuple>
<float>
151
3014787.3
7
</float>
<float>
151
8633464.6
7
</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