{#if type === 'email' || type === 'date' || type === 'number' || type === 'tel' || type === 'text' || type === 'time' || type === 'url' } {#if (content_layout == 'label_start' && label)} {/if} {#if (content_layout != 'label_start' && label)} {/if} {description} {:else if type === 'date_time' } {#if (content_layout == 'label_start' && label)} {label} {/if}
{#if label_begin} {/if} {#if !label_begin} {/if}
{#if label_begin} {/if} {#if !label_begin} {/if}
{#if (content_layout != 'label_start' && label)} {label} {/if} {description} {:else if type === 'checkbox' } {#if checkbox_none} {#if !value} {checked='checked'} {/if} {/if} {#if checkbox_li.length} {#if (content_layout == 'label_start' && label)} {label} {/if} {#each Object.entries(checkbox_li) as [li_key, li_value]} {#if li_key.toString() === value.toString() } {:else} {/if} {/each} {#if (content_layout != 'label_start' && label)} {label} {/if} {:else} {#if label_begin} {/if} {/if} {description} {:else if type === 'radio' } {#if radio_none} {#if !value} {checked='checked'} {/if} {/if} {#if radio_li} {#if (content_layout == 'label_start' && label)} {label}: {/if} {#each Object.entries(radio_li) as [li_key, li_value]} {#if value === null} {:else if ( li_key.toString() === value.toString() || (li_key == 'true' && value == true) || (li_key == 'false' && value == false) ) } {:else} {/if} {/each} {#if !label_begin} {label}: {/if} {:else} {#if label_begin} {/if} {#if !label_begin} {/if} {/if} {description} {:else if type === 'textarea'} {#if label_begin} {/if} {#if value_new_line}
{/if} {#if !label_begin} {/if} {description} {:else if type === 'hidden'} {:else if type === 'select'} {#if label_begin} {/if} {#if !label_begin} {/if} {description} {/if}