Commit 08eb2298 authored by Boris Kocherov's avatar Boris Kocherov

split gadget to one top and recursive children

parent 88b6a880
...@@ -65,6 +65,7 @@ module.exports = function (grunt) { ...@@ -65,6 +65,7 @@ module.exports = function (grunt) {
}, },
client: { client: {
src: ['gadget_json_generated_form.js', src: ['gadget_json_generated_form.js',
'gadget_json_generated_form_child.js',
'demo/gadget_demo_json_schema_form.js'], 'demo/gadget_demo_json_schema_form.js'],
directives: { directives: {
maxlen: 79, maxlen: 79,
......
...@@ -14,7 +14,8 @@ ...@@ -14,7 +14,8 @@
<script src="gadget_json_generated_form.js" type="text/javascript"></script> <script src="gadget_json_generated_form.js" type="text/javascript"></script>
</head> </head>
<body> <body>
<div data-json-path="/"> <div data-gadget-url="gadget_json_generated_form_child.html"
</div> data-gadget-scope="json_form_child"
data-gadget-sandbox="public"></div>
</body> </body>
</html> </html>
This diff is collapsed.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>ERP5</title>
<link rel="shortcut icon" href="favicon.ico">
<link rel="stylesheet" href="gadget_erp5_nojqm.css">
<link href="gadget_erp5_page_slap_parameter_form.css" rel="stylesheet" type="text/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>
<div data-json-path="/">
</div>
</body>
</html>
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment