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

{block translationObjectTitle}
   {$object.id} | <a title="{'displayProductDetail'|translate:'translations'}" href="javascript:nw('products', '{$object.id}')">{$object.title}</a>
   | <a href="/{'redir'|translate_shop:'SEO_URL'}/?type=product&amp;id={$object.id}&amp;lang={$language}" class="small" title="Zobrazit na webu" target="_blank">
      <span class="glyphicon glyphicon-search"></span>
   </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}-parameters"
               data-acn="loadSubObjects"
               data-url="launch.php?s=list.php&type=translateParameters&iframe=1&uniqueKey={$uniqueKey}-{$object.id}-translateParameters&sourceLanguage={$sourceLanguage}&language={$language}&itemsPerPage=1000&productID={$object.id}"
            >{'parameters'|translate:'translations'}</a>
         </li>
         <li>
            <a class="subObjectsToggleBtn" data-toggle="{$uniqueKey}-{$object.id}-sections"
               data-acn="loadSubObjects"
               data-url="launch.php?s=list.php&type=translateSections&iframe=1&uniqueKey={$uniqueKey}-{$object.id}-translateSections&sourceLanguage={$sourceLanguage}&language={$language}&itemsPerPage=1000&productID={$object.id}"
            >{'sections'|translate:'translations'}</a>
         </li>
         {if $module.TEMPLATES}
            <li>
               <a class="subObjectsToggleBtn" data-toggle="{$uniqueKey}-{$object.id}-templates"
                  data-acn="loadSubObjects"
                  data-url="launch.php?s=list.php&type=translateTemplates&iframe=1&uniqueKey={$uniqueKey}-{$object.id}-translateTemplates&sourceLanguage={$sourceLanguage}&language={$language}&itemsPerPage=1000&productID={$object.id}"
               >{'templates'|translate:'translations'}</a>
            </li>
         {/if}
         {if findModule('products', 'descr_plus')}
            <li>
               <a class="subObjectsToggleBtn" data-toggle="{$uniqueKey}-{$object.id}-descrPlus"
                  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}"
               >Popis+</a>
            </li>
         {/if}
      </ul>

      <div class="tab-content">
         <div class="tab-pane subObjects" id="{$uniqueKey}-{$object.id}-parameters" data-type="subObjects"></div>
         <div class="tab-pane subObjects" id="{$uniqueKey}-{$object.id}-sections" data-type="subObjects"></div>
         {if $module.TEMPLATES}
            <div class="tab-pane subObjects" id="{$uniqueKey}-{$object.id}-templates" data-type="subObjects"></div>
         {/if}
         {if findModule('products', 'descr_plus')}
            <div class="tab-pane subObjects" id="{$uniqueKey}-{$object.id}-descrPlus" data-type="subObjects"></div>
         {/if}
      </div>

   </div>
{/block}

{block objectsFilter append}
   <div class="form-group form-group-flex">
      <div class="col-md-12">
          {include 'block.productsFilter.tpl' filter=$filters.productsFilter}
      </div>
   </div>
{/block}
