Sha256: c1b18949d60f2d2bf912aee467d823fb275f687cf1dceac0bce9d4ade0bc6c0f
Contents?: true
Size: 884 Bytes
Versions: 1
Compression:
Stored size: 884 Bytes
Contents
<% base_class = "products-search".freeze # Data @taxons = @taxon && @taxon.parent ? @taxon.parent.children : Spree::Taxon.roots options = [[t('spree.all_departments'), '']] + @taxons.map {|t| [t.name, t.id]} selected = @taxon ? @taxon.id : params[:taxon] # Classes class_names = [base_class] class_names = class_names.join(" ") %> <%= form_tag spree.products_path, class: class_names, method: :get do %> <% cache [I18n.locale, @taxons] do %> <%= render( "spree/components/forms/inputs/select", name: :taxon, options: options, selected: selected ) %> <% end %> <%= render( "spree/components/forms/inputs/text", name: :keywords, placeholder: t('spree.search'), type: :search ) %> <%= render( "spree/components/buttons/button_primary", content: t('spree.search'), type: "submit" ) %> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
solidus_starter_frontend-0.1.0 | app/views/spree/components/search/_products_search.html.erb |