{extends "../window.tpl"} {block js} {$smarty.block.parent} {/block} {block tabs} {windowTab id='flapUser' label="{'flapUser'|translate:'users'}"} {windowTab id='flapInvoice' label="{'flapInvoice'|translate:'users'}"} {windowTab id='flapDelivery' label="{'flapDelivery'|translate:'users'}"} {if $body.acn=="edit"} {windowTab id='flapStats' label="{'flapStats'|translate:'users'}"} {windowTab id='flapGroups' label="{'flapGroups'|translate:'users'}"} {/if} {/block} {block title} {if $body.data.name} {$body.data.name} {$body.data.surname} | {/if} {if $body.acn == "edit"} {'titleEdit'|translate:'users'} {elseif $body.acn =="add"} {'titleAdd'|translate:'users'} {else} {$body.acn|translate:'users'} {/if} {/block} {block tabsContent} {get_contexts country=1 currency=1 assign='contexts'}
{'flapSettings'|translate:'users'} {block 'email-row'}
{if findRight('USR_IMPERSONATE') && !empty($body.data.id)} {/if}
{/block}
{if $body.data.passw == ""}{'noPassword'|translate:'users'}{else}{'okPassword'|translate:'users'}{/if}
{print_toggle name="figure"}
{block 'get-news'}
{print_toggle name="get_news"}
{/block}
{* GDPR sranda - get_news neznamená plný souhlas s NL, date_subscribe k tomu ještě nesmí být null *} {if $body.data.date_subscribe == null and $body.data.get_news == "Y"} {$msg = {'legitimateInterest'|translate:'users'}} {else} {$msg = '-'} {/if} {'date_subscribe'|translate:'users'}: {$body.data.date_subscribe|format_datetime:'admin'|default:$msg}
{'date_unsubscribe'|translate:'users'}: {$body.data.date_unsubscribe|format_datetime:'admin'|default:"-"}
{insert_calendar selector='#dateBirth' format='date'}
{if findModule('eshop_delivery')}
{/if} {if findModule('currencies')}
{$selectedCurrency = $body.data.currency} {if !$selectedCurrency} {$selectedCurrency = $contexts.currency->getDefaultId()} {/if}
{/if} {ifModule TRANSLATIONS}
{/ifModule} {if $module.PRICE_LEVELS} {block user_price_level}
{'priceLevelNote'|translate:'users'}
{/block} {/if} {ifModule PRICELISTS} {block user_price_list}
{'priceListNote'|translate:'users'}
{/block} {/ifModule} {ifmodule SALESMAN}
{/ifmodule}
{if findModule('api')} B2B API
{print_toggle name="api"}
{/if} {block "shop-spec"} {/block}
{'sectionInvoiceData'|translate:'users'}
{$selectedCountry = $body.data.country} {if !$selectedCountry} {$selectedCountry = $contexts.country->getActiveId()} {/if}
{'Day'|translate:'settings'}
{block "invoice-flap"} {/block}
{'sectionDeliveryData'|translate:'users'}
{$selectedCountry = $body.data.delivery_country}
{ifmodule USER_ADDRESSES}
{/ifmodule}
{if $body.acn=="edit"}
{'sectionStats'|translate:'users'} {$body.data.email}
{$body.data.date_reg_days} {'statDays'|translate:'users'}
{$body.favorites}
{if $module.WATCHDOG}
{/if}
{* {insert_calendar selector='#date_reg' format='datetime'}*}
{*{insert_calendar selector='#date_logged' format='datetime'}*}

Objednávky

{$body.orders.pocet} {if $body.orders.pocet > 0} {'userOrders'|translate:'users'}   {/if}
{if $body.orders.cena_celkem > 0}
{$body.orders.cena_celkem|format_price}
{$body.orders.average_price|format_price}
{/if}
{$body.cena_celkem|format_price}
{$body.lastYearOrdersPrice|format_price}
{$body.allOrdersPrice|format_price}
{ifmodule SALES}

Prodejky

{$body.sales.count} {if $body.sales.count > 0} {'userSales'|translate:'users'}   {/if}
{$body.sales.current_year_total_price|format_price}
{$body.sales.last_year_total_price|format_price}
{$body.sales.total_price|format_price}
{/ifmodule}
{include "window/users.groups.tpl"}
{/if} {include '../utils/smartform.tpl'} {/block}