ref: master
app/views/search/_search_form.html.erb
<%= form_tag( { :controller => 'search', :action => @asset ? @asset : 'index', :asset => nil, :category_path => ( @category ? @category.path : nil ) }, :method => 'get', :class => 'search_form' ) do %><%= assets_menu(@asset) %> <%= filters(@asset) %><%# ridiculous option %> <%# assets_submenu(@asset) %><%= render :partial => 'search_form_extra_fields' %> <% if @empty_query %> <% hint = environment.search_hints[@asset] %> <% if hint and !hint.blank? %><%= search_input_with_suggestions('query', @asset, @query, {:id => 'search-input', :size => 50, :placeholder => hint}) %> <%= submit_button :search, _('Search'), size: 'default' %><%= hint %><% end %> <% end %> <% end %>