{** * 2007-2017 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License 3.0 (AFL-3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * https://opensource.org/licenses/AFL-3.0 * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA * @copyright 2007-2017 PrestaShop SA * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) * International Registered Trademark & Property of PrestaShop SA *} {$autocomplete = [ 'firstname' => 'given-name', 'lastname' => 'family-name', 'email'=>'email', 'password'=>'current-password', 'new_password'=>'new-password', 'postcode'=>'postal-code', 'birthday'=>'bday', 'address1'=>'street-address', 'address2'=>'address-line2', 'id_state'=>'address-level1', 'city'=>'address-level2', 'company'=>'organization' ]} {if $field.type == 'hidden'} {block name='form_field_item_hidden'} {/block} {else} {assign var=uniqId value=10|mt_rand:100000}
{if $field.type == 'checkbox' || $field.type == 'radio-buttons'} {if $field.type == 'radio-buttons'}
{$field.label}
{/if} {else} {/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'} {foreach from=$field.availableValues item="label" key="value" name="radiolist"}
{/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-control form-control-select"' month_extra='class="form-control form-control-select"' year_extra='class="form-control form-control-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'}
{include file='_partials/form-errors.tpl' errors=$field.errors required=$field.required label=$field.label} {/block} {elseif $field.type === 'file'}
{else} {block name='form_field_item_other'} {if isset($field.availableValues.comment)} {$field.availableValues.comment} {/if} {/block} {/if} {block name='form_field_errors'} {if $field.type !== 'password'} {include file='_partials/form-errors.tpl' errors=$field.errors required=$field.required label=$field.label} {/if} {/block}
{/if}