
<div class='search-form'>
  <%= form_tag( { :controller => 'search', :action => @asset ? @asset : 'index', :asset => nil, :category_path => ( @category ? @category.path : nil ) },
                 :method => 'get', :class => 'search_form' ) do %>
    <div id='search-header'>
      <h1><%= _('Searches') %></h1>
      <%= assets_menu(@asset) %>
      <%= filters(@asset) %>
      <div class="clear"></div>
    </div>

    <div id='search-subheader'>
      <%= assets_submenu(@asset) %>
    </div>

    <div id='search-box' class="search-field form-group">
      <div class="formfield input-group">
        <%= search_input_with_suggestions('query', @asset, @query, {:id => 'search-input', :size => 50, :placeholder => hint}) %>
        <span class="input-group-btn">
          <%= submit_button :search, _('Search'), size: 'default' %>
        </span>
      </div>
    </div>

    <%= render :partial => 'search_form_extra_fields' %>

  <% end %>

  <% if @empty_query %>
    <% hint = environment.search_hints[@asset] %>
    <% if hint and !hint.blank? %>
      <div class="search-hint"><%= hint %></div>
    <% end %>
  <% end %>

  <div style="clear: both"></div>
</div>


<div class='search-form'>
  <%= form_tag( { :controller => 'search', :action => @asset ? @asset : 'index', :asset => nil, :category_path => ( @category ? @category.path : nil ) },
                 :method => 'get', :class => 'search_form' ) do %>
    <div id='search-header'>
      <h1><%= _('Searches') %></h1>
      <%= assets_menu(@asset) %>
      <%= filters(@asset) %>
      <div class="clear"></div>
    </div>

    <div id='search-subheader'>
      <%# ridiculous option %>
      <%# assets_submenu(@asset) %>
    </div>

    <div id='search-box' class="search-field form-group">
      <div class="formfield input-group">
        <%= search_input_with_suggestions('query', @asset, @query, {:id => 'search-input', :size => 50, :placeholder => hint}) %>
        <span class="input-group-btn">
          <%= submit_button :search, _('Search'), size: 'default' %>
        </span>
      </div>
    </div>

    <%= render :partial => 'search_form_extra_fields' %>

  <% end %>

  <% if @empty_query %>
    <% hint = environment.search_hints[@asset] %>
    <% if hint and !hint.blank? %>
      <div class="search-hint"><%= hint %></div>
    <% end %>
  <% end %>

  <div style="clear: both"></div>
</div>

Remove template option on search
Remove template option on search
