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

{block name="menu-items" append}
   <li class="nav-header smaller"><i class="glyphicon glyphicon-search"></i><span>{'search'|translate}</span></li>
   <ul class="nav-sub nav-pills">
      <form target="mainFrame" method="get" data-search="form" action="launch.php?s=list.php&type=DynamicRelatedProducts"
            class="form-inline">
         <input type="hidden" name="s" value="list.php" data-search="always">
         <input type="hidden" name="type" value="DynamicRelatedProducts" data-search="always"/>
         <li class="small-hidden">
            <div class="form-group" data-search="item">
               <div class="input-group">
                  <input type="text" class="form-control input-sm" name="name" value="" placeholder="{'searchName'|translate}"/>
                  <span class="input-group-btn">
                     <button type="submit" class="btn btn-primary btn-sm" title="{'searchOnlyThis'|translate}"><i
                           class="glyphicon glyphicon-search"></i></button>
                  </span>
               </div>
            </div>
            <div class="form-group">
               <div class="input-group invert">
                  <select data-autocomplete="productsRelatedTypes" data-preload="productsRelatedTypes" id="product_related_types"
                          name="product_related_types[]" multiple="multiple"
                          class="selecter selecter-ajax"
                          data-placeholder="{'selectType'|translate}"></select>
                  {inversion field="product_related_types"}
               </div>
            </div>
            <div class="form-group">
               <input type="reset" id="resetBtn" value="{'delete'|translate:"orders"}" class="btn btn-danger btn-sm"/>
               <input type="submit" value="{'searchBtn'|translate:"orders"}" class="btn btn-primary btn-sm"/>
               <input type="hidden" name="s" value="list.php"><input type="hidden" name="type" value="{$type}"/>
            </div>
         </li>
      </form>
   </ul>
{/block}
