{#if record?.id || form?.id} {/if} {#each fields as field} {@const type = fieldTypes[field] ?? 'String'} {@const label = fieldNameToLabel(field)}
{#if isRelation(field)} {:else if type === 'Boolean'} {:else if type === 'DateTime'} {:else if type === 'Int' || type === 'Float'} {#if field === 'price'} {:else} {/if} {:else if type === 'String'} {:else} {/if}
{/each}