{#if editingId !== null}
Update
Cancel
{:else}
Insert
{/if}
Specimen Type
Sex
Age Range
Text/ValueSet
Flag
Notes
{#if tempTxt.length === 0}
No data. Fill the form above and click Insert.
{:else} {#each tempTxt as row (row.id)}
{row.SpcType ? getLabel("SpcType", row.SpcType) : "-"}
{row.Sex ? getLabel("Sex", row.Sex) : "-"}
{row.AgeStart} – {row.AgeEnd}
{row.RefTxt ? row.RefTxt : "-"}
{txtRefTypeBadge(row.TxtRefType)}
{row.Flag ? row.Flag : "-"}
{row.Notes ? row.Notes : "-"}
handleEdit(row)} >
handleRemove(row.id)} >
{/each} {/if}