{if !empty($items)}
   <table border="0" cellpadding="0" cellspacing="0" width="100%" style="border-collapse: collapse;margin-bottom: 20px;"
          class="table-products">
       {foreach $items as $item}
          {$itemTitle = $item.descr}
          {if empty($item.descr)}
              {$itemTitle = $item.product.title}
              {if !empty($item.id_variation)}
                  {$itemTitle = "{$item.product.title} ({$item.product.variationTitle})"}
              {/if}
          {/if}

          <tr>
             <td style="border-bottom:1px solid #f2f4f8;padding: 7px 7px 7px 0;">
                 {if $item.id_product}
                    <a href="{url s='redir' type='product' id=$item.id_product absolute="1"}">{$itemTitle}</a>
                 {else}
                     {$itemTitle}
                 {/if}
             </td>
             <td style="border-bottom:1px solid #f2f4f8;padding: 7px 7px 7px 0;text-align: right;white-space: nowrap;">{$item.pieces} {t}ks{/t}</td>
          </tr>
       {/foreach}
   </table>
{else}
    <p>{t}Nebyly vybrány žádné položky.{/t}</p>
{/if}
