Permalink
Browse files

feat(fieldset): nested schemas fieldset element enables the rendering…

… of nested models/entities
  • Loading branch information...
bas080
bas080 committed May 19, 2016
1 parent 7a82418 commit 5d7733a24f939e72981a64bff4bf57cce8517b3d
@@ -1,29 +1,22 @@
export default {
fieldset: 'fieldset.html',
button: 'input.html',
checkbox: 'checkbox.html',

bool: 'checkbox.html',
boolean: 'checkbox.html',

color: 'input.html',

date: 'input.html',
datetime: 'input.html',
'datetime-local': 'input.html',

email: 'input.html',
month: 'input.html',

number: 'input.html',
int: 'input.html',
integer: 'input.html',

password: 'input.html',

radios: 'radios.html',
checkboxes: 'checkboxes.html',
select: 'select.html',

range: 'input.html',
file: 'file.html',
search: 'input.html',
@@ -0,0 +1,10 @@
<template>

<fieldset attrs>
<schema-form-elements
model.bind="value"
schema.bind="schema.schema">
</schema-form-elements>
</fieldset>

</template>
@@ -1,4 +1,9 @@
<template>
<require from="./schema-form-element"></require>
<schema-form-element value.two-way="model[def.name]" schema.one-way="def" repeat.for="def of schema"></schema-form-element>

<schema-form-element
value.bind="model[def.name]"
schema.bind="def"
repeat.for="def of schema">
</schema-form-element>

</template>
@@ -1,12 +1,12 @@
<template>

<require from="./schema-form-elements"></require>
<form role="form" submit.delegate="onSubmit()">

<form role="form" submit.delegate="submit()">
<fieldset>
<content select="schema-form-header"></content>
<schema-form-elements model.two-way="model" schema.one-time="schema"></schema-form-elements>
<schema-form-elements model.bind="model" schema.bind="schema"></schema-form-elements>
<content select="schema-form-footer"></content>
</fieldset>

</form>
</template>

0 comments on commit 5d7733a

Please sign in to comment.