{extends file="menu.tpl"}

{block name="menu-items" append}
   <li class="nav-header smaller"><i class="glyphicon glyphicon-search"></i><span>{'search'|translate}</span></li>
   <li class="pill-content">
      <ul class="nav-sub nav-pills">
         <form id='search' target="mainFrame" method="get" action="launch.php" class="form-inline">
            <input type="hidden" name="type" value="positions" /><input type="hidden" name="s" value="list.php">

            <div class="form-group">
               <div class="input-group">
                  {print_select name="location" var=["" => "Vyberte lokaci"] + $locations}
                  <span class="input-group-btn">
                     <button type="submit" border="0" class="btn btn-primary btn-sm" title="Vyhledat"><i class="glyphicon glyphicon-search"></i></button>
                  </span>
               </div>
            </div>

            <div class="form-group">
               <div class="input-group">
                  <input type="text" class="form-control input-sm" name="search" maxlength="20" value="" placeholder="{'searchCode'|translate}"/>
                  <span class="input-group-btn">
                        <button type="submit" border="0" class="btn btn-primary btn-sm" title="Vyhledat"><i class="glyphicon glyphicon-search"></i></button>
                     </span>
               </div>
            </div>


            <div class="form-group">
               <input type="text" class="form-control input-sm" name="id_product" maxlength="100" value="" onKeyPress="checkInputData('int')" placeholder="{'searchNameCode'|translate:'orders'}"/>
            </div>
            <div class="form-group">
               <select name="id_variation" class="input-sm form-control"></select>
               <script type="text/javascript">
                  $(function(){
                     initAutocompleteVariation('[name=id_product]', '[name=id_variation]');
                  });
               </script>
            </div>

            <div class="form-group">
               <input type="reset" value="{'delete'|translate:'orders'}" class="btn btn-danger btn-sm"/>
               <input type="submit" value="{'searchBtn'|translate:'orders'}" class="btn btn-primary btn-sm"/>
            </div>
         </form>
      </ul>
   </li>
{/block}
