Sha256: 7f9b3521b241752287b18f97c3150af0030dba07255ab8ff163e4ecb5fea4fd0

Contents?: true

Size: 770 Bytes

Versions: 14

Compression:

Stored size: 770 Bytes

Contents

<% @taxons = @taxon && @taxon.parent ? @taxon.parent.children : Spree::Taxon.roots %>

<%= form_tag spree.products_path, method: :get, class: "navbar-form" do %>
  <div class="form-group">
    <% cache(cache_key_for_taxons) do %>
      <%= select_tag :taxon,
            options_for_select([[Spree.t(:all_departments), '']] +
                                  @taxons.map {|t| [t.name, t.id]},
                                  @taxon ? @taxon.id : params[:taxon]), 'aria-label' => 'Taxon', class: "form-control" %>
    <% end %>
  </div>
  <div class="form-group">
    <%= search_field_tag :keywords, params[:keywords], placeholder: Spree.t(:search), class: "form-control" %>
  </div>
  <%= submit_tag Spree.t(:search), name: nil, class: "btn btn-success" %>
<% end %>

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
spree_frontend-3.2.9 app/views/spree/shared/_search.html.erb
spree_frontend-3.2.8 app/views/spree/shared/_search.html.erb
spree_frontend-3.2.7 app/views/spree/shared/_search.html.erb
spree_frontend-3.2.6 app/views/spree/shared/_search.html.erb
spree_frontend-3.2.5 app/views/spree/shared/_search.html.erb
spree_frontend-3.2.4 app/views/spree/shared/_search.html.erb
spree_frontend-3.2.3 app/views/spree/shared/_search.html.erb
spree_frontend-3.2.2 app/views/spree/shared/_search.html.erb
spree_frontend-3.3.0.rc1 app/views/spree/shared/_search.html.erb
spree_frontend-3.2.1 app/views/spree/shared/_search.html.erb
spree_frontend-3.2.0 app/views/spree/shared/_search.html.erb
spree_frontend-3.2.0.rc3 app/views/spree/shared/_search.html.erb
spree_frontend-3.2.0.rc2 app/views/spree/shared/_search.html.erb
spree_frontend-3.2.0.rc1 app/views/spree/shared/_search.html.erb