Sha256: a36f882877adb3269b91ed167ab0cf2d3c3fa63c23d27251b3999181bcb0993d

Contents?: true

Size: 494 Bytes

Versions: 3

Compression:

Stored size: 494 Bytes

Contents

<% @taxons = @taxon && @taxon.parent ? @taxon.parent.children : Spree::Taxon.roots %>
<%= form_tag spree.products_path, :method => :get do %>
  <%= select_tag :taxon,
        options_for_select([[t(:all_departments), '']] +
                              @taxons.map {|t| [t.name, t.id]},
                            @taxon ? @taxon.id : params[:taxon]) %>
  <%= search_field_tag :keywords, params[:keywords], :placeholder => t(:search) %>
  <%= submit_tag t(:search), :name => nil %>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
spree_core-1.3.5 app/views/spree/shared/_search.html.erb
spree_core-1.3.4 app/views/spree/shared/_search.html.erb
spree_core-1.3.3 app/views/spree/shared/_search.html.erb