{extends "[shared]/menu.tpl"}


{block name="menu-items" }
   <li class="nav-header"><i class="glyphicon glyphicon-tags"></i><span>{translate_type type=$type}</span></li>


   <li class="nav-header smaller"><i class="glyphicon glyphicon-search"></i><span>{'search'|translate}</span></li>
      <li class="with_caret "><a href="#" class="opener"><span>{'filterBasic'|translate}</span></a></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="productsSerialNumbers"/><input type="hidden" name="s" value="list.php">

            <div class="form-group">
               <div class="input-group invert">
                  <input type="text" class="form-control input-sm" name="serialNumber" maxlength="20" value=""
                         placeholder="{'serialNumber'|translate}"/>
                  {inversion field="serialNumber"}
               </div>
            </div>

            <div class="form-group">
               <div class="input-group invert">
                  <input type="text" class="form-control input-sm" name="idOrder" maxlength="20" value=""
                         placeholder="{'searchOrder'|translate}"/>
                  {inversion field="idOrder"}
               </div>
            </div>
            <div class="form-group">
               <input type="reset" value="{'delete'|translate}" class="btn btn-danger btn-sm"/>
               <input type="submit" value="{'searchBtn'|translate}" class="btn btn-primary btn-sm"/>
            </div>
         </form>
      </ul>
   </li>
   <li class="with_caret"><a href="#" class="opener"><span>{'filterByProduct'|translate}</span></a></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="{$type}"/><input type="hidden" name="s" value="list.php">

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

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