{extends file="./translate.tpl"}

{block translationObjectTitle}
    {$object.id} | <a title="{'displayPageDetail'|translate:'translations'}" href="javascript:nw('menu', '{$object.id}')">{$object.name}</a>
    {* Pouze pokud je typ stranka *}
    {if $object.type == 1}
        | <a href="/{'redir'|translate_shop:'SEO_URL'}/?type=page&amp;id={$object.id}&amp;lang={$language}" class="small" title="Zobrazit na webu" target="_blank">
                <span class="glyphicon glyphicon-search"></span>
          </a>
        | <a href="/{'redir'|translate_shop:'SEO_URL'}/?type=page&amp;id={$object.id}&amp;lang={$language}&inlineEditable=1" class="btn btn-primary" target="_blank"><span
                class="glyphicon glyphicon-edit"></span> {'translateContent'|translate:'translations'}</a>
    {/if}
{/block}

{block objectRow append}
    {* Pouze pokud je typ stranka *}
    {if $object.type == 1}
    <div class="row subObjectsWrapper" data-type="subObjectsWrapper">

        <ul class="nav nav-tabs" data-type="subObjectsToggleButtons">
            <li>
                <a class="subObjectsToggleBtn" data-toggle="{$uniqueKey}-{$object.id}-pageBlocks"
                   data-acn="loadSubObjects"
                   data-url="launch.php?s=list.php&type=translateBlocks&iframe=1&uniqueKey={$uniqueKey}-{$object.id_block}-translateBlocks&sourceLanguage={$sourceLanguage}&language={$language}&itemsPerPage=1000&blocks[]={$object.id_block}"
                >{'pageBlocks'|translate:'translations'}</a>
            </li>
        </ul>

        <div class="tab-content">
            <div class="tab-pane subObjects" id="{$uniqueKey}-{$object.id}-pageBlocks" data-type="subObjects"></div>
        </div>

    </div>
    {/if}
{/block}
