small fixes

This commit is contained in:
Arman
2022-08-25 10:07:54 +02:00
parent 7f5c249ef2
commit 3eba0ab884
2 changed files with 5 additions and 2 deletions
@@ -76,12 +76,15 @@
</svelte:fragment>
<Form on:submit={create}>
{#if currentStep === 0}
{@const attributes =
$attributeList?.attributes?.filter((a) => a.status === 'available') || []}
<header class="form-header">
<h1 class="heading-level-6">Create document data</h1>
<p>Provide document data based on attributes you created earlier.</p>
</header>
<ul class="form-list">
{#each $attributeList?.attributes?.filter((a) => a.status === 'available') as attribute}
{#each attributes as attribute}
{@const label = attribute.required ? `${attribute.key}*` : attribute.key}
{#if attribute.array}
{#each newDocument[attribute.key] as _v, index}
@@ -48,7 +48,7 @@
{#if $documentList?.total}
<div class="table-wrapper">
<Table sticky>
<Table sticky={true}>
<TableHeader>
<TableCellHead>Document ID</TableCellHead>
{#each columns as column}