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
Jérome Perrin
rjs_json_form
Commits
cc837f58
Commit
cc837f58
authored
Jun 08, 2018
by
Boris Kocherov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
prepare for erp5 use
parent
5f10d972
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
13 deletions
+13
-13
Gruntfile.js
Gruntfile.js
+2
-2
demo/gadget_demo_json_schema_form.html
demo/gadget_demo_json_schema_form.html
+3
-3
schema.gadget.html
schema.gadget.html
+1
-1
schema.gadget.js
schema.gadget.js
+1
-1
schema_editor/gadget_json_generated_form_child.html
schema_editor/gadget_json_generated_form_child.html
+5
-5
schema_editor/gadget_json_generated_form_child.js
schema_editor/gadget_json_generated_form_child.js
+1
-1
No files found.
Gruntfile.js
View file @
cc837f58
...
...
@@ -65,8 +65,8 @@ module.exports = function (grunt) {
}
},
client
:
{
src
:
[
'
gadget_json_generated_form
.js
'
,
'
gadget_json_generated_form_child.js
'
,
src
:
[
'
schema.gadget
.js
'
,
'
schema_editor/
gadget_json_generated_form_child.js
'
,
'
demo/gadget_demo_json_schema_form.js
'
],
directives
:
{
maxlen
:
79
,
...
...
demo/gadget_demo_json_schema_form.html
View file @
cc837f58
...
...
@@ -21,10 +21,10 @@
Demo UI for JSON Scheme form generator
</h3>
</section>
<div
data-gadget-url=
"../
gadget_json_generated_form
.html"
<div
data-gadget-url=
"../
schema.gadget
.html"
data-gadget-scope=
"schema"
data-gadget-sandbox=
"public"
></div>
<div
data-gadget-url=
"../
gadget_json_generated_form
.html"
<div
data-gadget-url=
"../
schema.gadget
.html"
data-gadget-scope=
"document"
data-gadget-sandbox=
"public"
></div>
<br>
...
...
@@ -32,7 +32,7 @@
<div
class=
"field_container"
>
<div
class=
"left"
>
<div
class=
"ui-field-contain"
>
<div
data-gadget-url=
"../
gadget_json_generated_form
.html"
<div
data-gadget-url=
"../
schema.gadget
.html"
data-gadget-scope=
"form_view"
data-gadget-sandbox=
"public"
>
</div>
...
...
gadget_json_generated_form
.html
→
schema.gadget
.html
View file @
cc837f58
...
...
@@ -9,7 +9,7 @@
<script
src=
"tv4.js"
type=
"text/javascript"
></script>
<script
src=
"renderjs.js"
type=
"text/javascript"
></script>
<script
src=
"jio.js"
type=
"text/javascript"
></script>
<script
src=
"
gadget_json_generated_form
.js"
type=
"text/javascript"
></script>
<script
src=
"
schema.gadget
.js"
type=
"text/javascript"
></script>
</head>
<body>
</body>
...
...
gadget_json_generated_form
.js
→
schema.gadget
.js
View file @
cc837f58
...
...
@@ -528,7 +528,7 @@
return
RSVP
.
Queue
()
.
push
(
function
()
{
if
(
!
g
.
props
.
form_gadget
)
{
return
g
.
declareGadget
(
'
gadget_json_generated_form_child.html
'
,
return
g
.
declareGadget
(
'
schema_editor/
gadget_json_generated_form_child.html
'
,
{
scope
:
"
j
"
+
Math
.
random
().
toString
(
36
).
substr
(
2
,
9
)})
.
push
(
function
(
json_form_child
)
{
g
.
props
.
form_gadget
=
json_form_child
;
...
...
gadget_json_generated_form_child.html
→
schema_editor/
gadget_json_generated_form_child.html
View file @
cc837f58
...
...
@@ -4,11 +4,11 @@
<meta
charset=
"utf-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<title>
ERP5
</title>
<link
rel=
"stylesheet"
href=
"gadget_erp5_nojqm.css"
>
<script
src=
"rsvp.js"
type=
"text/javascript"
></script>
<script
src=
"tv4.js"
type=
"text/javascript"
></script>
<script
src=
"renderjs.js"
type=
"text/javascript"
></script>
<script
src=
"jio.js"
type=
"text/javascript"
></script>
<link
rel=
"stylesheet"
href=
"
../
gadget_erp5_nojqm.css"
>
<script
src=
"
../
rsvp.js"
type=
"text/javascript"
></script>
<script
src=
"
../
tv4.js"
type=
"text/javascript"
></script>
<script
src=
"
../
renderjs.js"
type=
"text/javascript"
></script>
<script
src=
"
../
jio.js"
type=
"text/javascript"
></script>
<script
src=
"gadget_json_generated_form_child.js"
type=
"text/javascript"
></script>
</head>
<body>
...
...
gadget_json_generated_form_child.js
→
schema_editor/
gadget_json_generated_form_child.js
View file @
cc837f58
...
...
@@ -354,7 +354,7 @@
.
push
(
function
(
schema_alternatives
)
{
var
scope
=
'
s
'
+
Math
.
random
().
toString
(
36
).
substr
(
2
,
9
);
if
(
schema_alternatives
.
length
>
1
)
{
return
gadget
.
declareGadget
(
"
gadget_html5_select.html
"
,
{
scope
:
scope
})
return
gadget
.
declareGadget
(
"
../
gadget_html5_select.html
"
,
{
scope
:
scope
})
.
push
(
function
(
g
)
{
return
RSVP
.
Queue
()
.
push
(
function
()
{
...
...
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