mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
feaet: start work on array attributes
This commit is contained in:
1 parent
9cb2cf9aed
commit
e644a05eeb
1 file changed
+24
-6
+24
-6
@@ -85,12 +85,30 @@
|
||||
<div class="form-content">
|
||||
<FormList>
|
||||
{#each $collection.attributes as attribute}
|
||||
<svelte:component
|
||||
this={comp(attribute.type)}
|
||||
label={attribute.key}
|
||||
id={attribute.key}
|
||||
required={attribute.required}
|
||||
bind:value={newDocument[attribute.key]} />
|
||||
{#if attribute.array}
|
||||
<li class="form-item is-multiple">
|
||||
<div class="form-item-part u-stretch">
|
||||
<svelte:component
|
||||
this={comp(attribute.type)}
|
||||
label={attribute.key}
|
||||
id={attribute.key}
|
||||
required={attribute.required}
|
||||
bind:value={newDocument[attribute.key]} />
|
||||
</div>
|
||||
<div class="form-item-part u-cross-child-end">
|
||||
<Button text>
|
||||
<span class="icon-x" aria-hidden="true" />
|
||||
</Button>
|
||||
</div>
|
||||
</li>
|
||||
{:else}
|
||||
<svelte:component
|
||||
this={comp(attribute.type)}
|
||||
label={attribute.key}
|
||||
id={attribute.key}
|
||||
required={attribute.required}
|
||||
bind:value={newDocument[attribute.key]} />
|
||||
{/if}
|
||||
{/each}
|
||||
</FormList>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user