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

{block translationObjectTitle}
    {$object.id} |
   <a title="{'displayPageDetail'|translate:'translations'}" href="javascript:nw('articles', '{$object.id}')">{$object.title}</a>
   |
   <a href="/{'redir'|translate_shop:'SEO_URL'}/?type=article&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=article&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>
{/block}

{block objectRow append}
   <div class="row subObjectsWrapper" data-type="subObjectsWrapper">

      <ul class="nav nav-tabs" data-type="subObjectsToggleButtons">
         <li>
            <a class="subObjectsToggleBtn" data-toggle="{$uniqueKey}-{$object.id}-articleBlock"
               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}"
            >{'articlesBlocks'|translate:'translations'}</a>
         </li>

         <li>
            <a class="subObjectsToggleBtn" data-toggle="{$uniqueKey}-{$object.id}-articlesSections"
               data-acn="loadSubObjects"
               data-url="launch.php?s=list.php&type=translateArticlesSections&iframe=1&uniqueKey={$uniqueKey}-{$object.id}-translateArticlesSections&sourceLanguage={$sourceLanguage}&language={$language}&itemsPerPage=1000&objectIDs={$object.articleBranches}"
            >{'sections'|translate:'translations'}</a>
         </li>

          {ifmodule ARTICLES_AUTHORS}
             <li>
                <a class="subObjectsToggleBtn" data-toggle="{$uniqueKey}-{$object.id}-articlesAuthors"
                   data-acn="loadSubObjects"
                   data-url="launch.php?s=list.php&type=translateArticlesAuthors&iframe=1&uniqueKey={$uniqueKey}-{$object.id}-translateArticlesAuthors&sourceLanguage={$sourceLanguage}&language={$language}&itemsPerPage=1000&productID={$object.id}"
                >{'articlesAuthors'|translate:'translations'}</a>
             </li>
          {/ifmodule}

         <li>
            <a class="subObjectsToggleBtn" data-toggle="{$uniqueKey}-{$object.id}-articlesPhotos"
               data-acn="loadSubObjects"
               data-url="launch.php?s=list.php&type=translatePhotos&iframe=1&uniqueKey={$uniqueKey}-{$object.id}-translatePhotos&sourceLanguage={$sourceLanguage}&language={$language}&itemsPerPage=10&objectIDs={$object.articlePhotos}">
                {'photos'|translate:'translations'}</a>
         </li>
      </ul>

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

   </div>
{/block}
