|
|
@ -43,6 +43,16 @@ |
|
|
</Label> |
|
|
</Label> |
|
|
{:else} |
|
|
{:else} |
|
|
{#if schema.relationshipType === 'one-to-many'} |
|
|
{#if schema.relationshipType === 'one-to-many'} |
|
|
|
|
|
<Multiselect |
|
|
|
|
|
secondary |
|
|
|
|
|
bind:value={linkedIds} |
|
|
|
|
|
{label} |
|
|
|
|
|
placeholder="Choose some options"> |
|
|
|
|
|
{#each rows as row} |
|
|
|
|
|
<option value={row._id}>{getPrettyName(row)}</option> |
|
|
|
|
|
{/each} |
|
|
|
|
|
</Multiselect> |
|
|
|
|
|
{:else} |
|
|
<Select |
|
|
<Select |
|
|
thin |
|
|
thin |
|
|
secondary |
|
|
secondary |
|
|
@ -56,15 +66,5 @@ |
|
|
</option> |
|
|
</option> |
|
|
{/each} |
|
|
{/each} |
|
|
</Select> |
|
|
</Select> |
|
|
{:else} |
|
|
|
|
|
<Multiselect |
|
|
|
|
|
secondary |
|
|
|
|
|
bind:value={linkedIds} |
|
|
|
|
|
{label} |
|
|
|
|
|
placeholder="Choose some options"> |
|
|
|
|
|
{#each rows as row} |
|
|
|
|
|
<option value={row._id}>{getPrettyName(row)}</option> |
|
|
|
|
|
{/each} |
|
|
|
|
|
</Multiselect> |
|
|
|
|
|
{/if} |
|
|
{/if} |
|
|
{/if} |
|
|
{/if} |
|
|
|