{extends "ordering.tpl"} {block "order-content"}

{t}Kontaktní údaje{/t}

{* omezeni delky inputu kvuli Swisspost *} {if $cfg.Order.Countries['CH']}{$isSwiss = true}{/if} {if $ctrl.logged}

{t}Jste přihlášený jako uživatel {/t}{$ctrl.name} {$ctrl.surname} ({$ctrl.login}).

{else}
{block "order-user-email"}

{t}Máte u nás účet?{/t}

{/block}
{/if}

{t}Kontaktní údaje{/t}

{block "user-data"}
{/block} {block "order-user-street"}
{/block}
{block "order-user-city"}
{/block}
{block "order-user-country"}
{get_contexts country=1 assign='country_context'} {if $body.invoice.country} {$active = $body.invoice.country} {else} {$active = $country_context.country->getActive()->getId()} {/if} {if $tpl_vars.delivery_country_picker} {t}Jiný stát?{/t} {/if}
{/block}
{$deliveryType = $body->getDeliveryType()} {if $deliveryType and $deliveryType->getPayment() and $deliveryType->getPayment()->class === 'Intrum'} {* todo redesign *}
{/if} {if !$ctrl.logged}
{* pokud jednou submittnu heslo, už se nedá vymazat, protože odchecknutí checkboxu input s heslem disabluje, takže se neodešle s prázdnou hodnotou. Prázdný hidden input se odešle. *}
{block "password"} {/block} {t}Zobrazit{/t}
{block 'gender'}
{t}Nepovinné{/t}
{/block} {* todo: upravit JS na checkbox *} {* todo: upravit email validaci na BSV

{t}Zadejte prosím pečlivě svůj e-mail.{/t}

*}
{/if} {* nákup na firmu *} {if $ctrl.active_country == "CZ"}
{if $showCopyEmail} {$fieldWidth = 3} {else} {$fieldWidth = 4} {/if}
{if $showCopyEmail}
{/if}
{/if} {* nejdriv check zda existuje deliverytype *} {* skryt fakt. adresu pokud deliverytype nevyzaduje dor. adresu (napr. balik na postu) *} {if !$deliveryType || $deliveryType->getDelivery()->requiresDeliveryAddress()}

{t}Dodací adresa{/t}

{block "delivery-phone"}{/block}
{block "delivery-street"}
{/block}
{block "delivery-address-specification"}
{/block} {block "delivery-custom-data"}{/block}
{/if} {* pokud je os. odběr, vymazat del. adress, mohla zbyt z předchozího průchodu košíkem *} {if $deliveryType and $deliveryType->isInPerson()} {/if} {block 'firm-address-checkbox'} {*
{block 'firm-address'}

{t}Firemní údaje{/t}

{/block} { * mam osobni odber (nevyzaduje zadani adresy), chci fakturu na firmu * } {if $deliveryType and $deliveryType->isInPerson() and !$inpersonRequireAddress}
{/if}
*} {/block} {block "order-note"}
{/block} {include 'ordering/ordering.gdpr.tpl'} {include "block.addressValidation.tpl"} {/block} {block analytics append} {include "components/block.smartForm.tpl"} {/block}