{extends "../menu.tpl"}

{block name="content"}
   <ul class="nav nav-pills nav-stacked">
      <li class="nav-header"><i class="glyphicon glyphicon-shopping-cart"></i><span>{'orders'|translate}</span></li>
      <li><a href="launch.php?s=list.php&amp;type=orders" target="mainFrame"><i class="glyphicon glyphicon-list"></i> <span>{'orderList'|translate}</span></a></li>
      <li><a href="javascript:nw('order', '0', 'flap_next=3');"><i class="glyphicon glyphicon-plus"></i> <span>{'addOrder'|translate}</span></a></li>
   </ul>
   <ul class="nav nav-pills nav-stacked small-hidden">
      <li class="nav-header smaller"><i class="glyphicon glyphicon-filter"></i><span>{'filter'|translate}</span></li>
      {if findModule('orders', 'complete')}
      {block "filter-complete"}
         <li><a href="launch.php?s=list.php&amp;type=orders&amp;complete=1" target="mainFrame"><span>Objednávky v celku {*({$complete})*}</span></a></li>
      {/block}
      {/if}

      {if getStatuses('invoice')}
         <li><a href="launch.php?s=list.php&amp;type=orders&amp;active=1&amp;invoice_timeout=5" target="mainFrame"><span>Objednávky před splatností</span></a></li>
      {/if}

      {include "menu/orderListFilter.tpl"}
      {if findModule('order_edit')}
         <li><a href="launch.php?s=list.php&amp;type=orders&amp;edited=1" target="mainFrame"><span>{'editedOrders'|translate}</span></a></li>
      {/if}
   </ul>

   {* Multiselects reset *}
   <script>
      $('input[type=reset]').click(function(){
         $(".selecter").val('').trigger("chosen:updated");
      });
   </script>

{/block}
