Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
rjs_json_form
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
rjs_json_form
Commits
e1bc6481
Commit
e1bc6481
authored
Mar 22, 2018
by
Boris Kocherov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
draft
parent
b59c112e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
14 deletions
+15
-14
gadget_erp5_page_slap_load_schema.js
gadget_erp5_page_slap_load_schema.js
+8
-7
gadget_erp5_page_slap_parameter_form.css
gadget_erp5_page_slap_parameter_form.css
+7
-7
No files found.
gadget_erp5_page_slap_load_schema.js
View file @
e1bc6481
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
return
jIO
.
util
.
ajax
({
return
jIO
.
util
.
ajax
({
url
:
url
,
url
:
url
,
dataType
:
"
json
"
dataType
:
"
json
"
})
})
;
})
})
.
push
(
function
(
evt
)
{
.
push
(
function
(
evt
)
{
return
evt
.
target
.
response
;
return
evt
.
target
.
response
;
...
@@ -212,11 +212,12 @@
...
@@ -212,11 +212,12 @@
rJS
(
window
)
rJS
(
window
)
.
declareMethod
(
"
loadJSONSchema
"
,
function
(
url
)
{
.
declareMethod
(
"
loadJSONSchema
"
,
function
(
url
)
{
return
getJSON
(
url
)
return
getJSON
(
url
);
.
push
(
function
(
json
)
{
// disable validating
var
base_url
=
getBaseUrl
(
url
);
// .push(function (json) {
return
validateJSONSchema
(
json
,
base_url
);
// var base_url = getBaseUrl(url);
});
// return validateJSONSchema(json, base_url);
// });
})
})
.
declareMethod
(
"
loadSoftwareJSON
"
,
function
(
url
)
{
.
declareMethod
(
"
loadSoftwareJSON
"
,
function
(
url
)
{
...
@@ -252,7 +253,7 @@
...
@@ -252,7 +253,7 @@
return
getJSON
(
schema_url
)
return
getJSON
(
schema_url
)
.
push
(
function
(
schema
)
{
.
push
(
function
(
schema
)
{
var
base_url
=
getBaseUrl
(
schema_url
);
var
base_url
=
getBaseUrl
(
schema_url
);
return
expandSchema
(
schema
,
schema
,
base_url
)
return
expandSchema
(
schema
,
schema
,
base_url
)
;
})
})
.
push
(
function
(
loaded_schema
)
{
.
push
(
function
(
loaded_schema
)
{
return
tv4
.
validateMultiple
(
generated_json
,
loaded_schema
);
return
tv4
.
validateMultiple
(
generated_json
,
loaded_schema
);
...
...
gadget_erp5_page_slap_parameter_form.css
View file @
e1bc6481
...
@@ -43,7 +43,7 @@ div.slapos-parameter-dict-key .subfield:last-child {
...
@@ -43,7 +43,7 @@ div.slapos-parameter-dict-key .subfield:last-child {
#software-type
{
padding
:
10px
0
0
;}
#software-type
{
padding
:
10px
0
0
;}
#software-type
.field
[
title
=
'serialisation_type'
]
.input
{
padding-top
:
0
;
}
#software-type
.field
[
title
=
'serialisation_type'
]
.input
{
padding-top
:
0
;
}
.subfield
,
#software-type
.input
{
.subfield
,
#software-type
.input
{
padding-top
:
10
px
;
padding-top
:
3
px
;
}
}
.subfield
label
,
#software-type
label
{
.subfield
label
,
#software-type
label
{
...
@@ -84,8 +84,8 @@ fieldset > .subfield > label {
...
@@ -84,8 +84,8 @@ fieldset > .subfield > label {
background-image
:
-ms-linear-gradient
(
top
,
#3498db
,
#2980b9
);
background-image
:
-ms-linear-gradient
(
top
,
#3498db
,
#2980b9
);
background-image
:
-o-linear-gradient
(
top
,
#3498db
,
#2980b9
);
background-image
:
-o-linear-gradient
(
top
,
#3498db
,
#2980b9
);
background-image
:
linear-gradient
(
to
bottom
,
#3498db
,
#2980b9
);
background-image
:
linear-gradient
(
to
bottom
,
#3498db
,
#2980b9
);
-webkit-border-radius
:
4
;
-webkit-border-radius
:
4
px
;
-moz-border-radius
:
4
;
-moz-border-radius
:
4
px
;
border-radius
:
4px
;
border-radius
:
4px
;
border
:
1px
solid
#3498db
;
border
:
1px
solid
#3498db
;
color
:
#ffffff
;
color
:
#ffffff
;
...
@@ -157,12 +157,12 @@ label.slapos-parameter-dict-key {
...
@@ -157,12 +157,12 @@ label.slapos-parameter-dict-key {
}
}
div
.slapos-parameter-dict-key
{
div
.slapos-parameter-dict-key
{
margin-top
:
10px
;
/*margin-top: 10px;*/
margin-left
:
6px
;
margin-left
:
6px
;
}
}
.subfield
{
.subfield
{
padding-top
:
3px
;
/*padding-top: 3px;*/
}
}
textarea
.slapos-parameter
{
textarea
.slapos-parameter
{
...
@@ -181,8 +181,8 @@ button.hidden-button {
...
@@ -181,8 +181,8 @@ button.hidden-button {
background-image
:
-ms-linear-gradient
(
top
,
#3498db
,
#2980b9
);
background-image
:
-ms-linear-gradient
(
top
,
#3498db
,
#2980b9
);
background-image
:
-o-linear-gradient
(
top
,
#3498db
,
#2980b9
);
background-image
:
-o-linear-gradient
(
top
,
#3498db
,
#2980b9
);
background-image
:
linear-gradient
(
to
bottom
,
#3498db
,
#2980b9
);
background-image
:
linear-gradient
(
to
bottom
,
#3498db
,
#2980b9
);
-webkit-border-radius
:
28
;
-webkit-border-radius
:
28
px
;
-moz-border-radius
:
28
;
-moz-border-radius
:
28
px
;
border-radius
:
28px
;
border-radius
:
28px
;
font-family
:
Arial
;
font-family
:
Arial
;
color
:
#ffffff
;
color
:
#ffffff
;
...
...
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