{** * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. *} {if $field.type == 'hidden'} {block name='form_field_item_hidden'} {/block} {else}
{if ($field.type !== 'checkbox')} {/if} {if $field.type === 'select'} {block name='form_field_item_select'} {/block} {elseif $field.type === 'countrySelect'} {block name='form_field_item_country'} {/block} {elseif $field.type === 'radio-buttons'} {block name='form_field_item_radio'}

{$field.label}

{foreach from=$field.availableValues item="label" key="value"}
{/foreach}
{/block} {elseif $field.type === 'checkbox'} {block name='form_field_item_checkbox'}
{/block} {elseif $field.type === 'date'} {block name='form_field_item_date'} {if isset($field.availableValues.comment)} {$field.availableValues.comment} {/if} {/block} {elseif $field.type === 'birthday'} {block name='form_field_item_birthday'}
{html_select_date field_order=DMY time={$field.value} field_array={$field.name} prefix=false reverse_years=true field_separator='
' day_extra='class="form-select"' month_extra='class="form-select"' year_extra='class="form-select"' day_empty={l s='-- day --' d='Shop.Forms.Labels'} month_empty={l s='-- month --' d='Shop.Forms.Labels'} year_empty={l s='-- year --' d='Shop.Forms.Labels'} start_year={'Y'|date}-100 end_year={'Y'|date} }
{/block} {elseif $field.type === 'password'} {block name='form_field_item_password'}
{/block} {elseif $field.type === 'textarea'} {block name='form_field_item_textarea'} {if isset($field.availableValues.comment)} {$field.availableValues.comment} {/if} {/block} {else} {block name='form_field_item_other'} {if isset($field.availableValues.comment)} {$field.availableValues.comment} {/if} {/block} {/if} {block name='form_field_errors'} {include file='_partials/form-errors.tpl' errors=$field.errors} {/block} {block name='form_field_comment'} {if (!$field.required && !in_array($field.type, ['radio-buttons', 'checkbox']))}
{l s='Optional' d='Shop.Forms.Labels'}
{/if} {/block}
{/if}