Sha256: 07845ce46d4357ca961ce848345c1f3b5801c804458697837dd89d8278db957c

Contents?: true

Size: 989 Bytes

Versions: 8

Compression:

Stored size: 989 Bytes

Contents

<% content_for :table_filter_title do %>
  <%= t('spree.search') %>
<% end %>

<% content_for :table_filter do %>
  <%= form_for :variant_search, url: spree.admin_product_variants_path(product), method: :get do |f| %>
    <div class="col-10">
      <div data-hook="admin_variants_index_search" class="field">
        <%= f.label :variant_search_term, t('spree.variant_search_placeholder') %>
        <%= text_field_tag :variant_search_term, params[:variant_search_term], class: "fullwidth", placeholder: t('spree.variant_search_placeholder') %>
      </div>
    </div>

    <% if product.variants.with_discarded.discarded.any? %>
      <div class="col-2">
        <div class="field checkbox">
          <label>
            <%= check_box_tag :deleted, "on", params[:deleted] == "on" %>
            <%= t('.show_deleted') %>
          </label>
        </div>
      </div>
    <% end %>

    <div class="actions filter-actions">
      <%= f.button :search %>
    </div>
  <% end %>
<% end %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
solidus_backend-3.1.7 app/views/spree/admin/variants/_table_filter.html.erb
solidus_backend-3.1.6 app/views/spree/admin/variants/_table_filter.html.erb
solidus_backend-3.1.5 app/views/spree/admin/variants/_table_filter.html.erb
solidus_backend-3.1.4 app/views/spree/admin/variants/_table_filter.html.erb
solidus_backend-3.1.3 app/views/spree/admin/variants/_table_filter.html.erb
solidus_backend-3.1.2 app/views/spree/admin/variants/_table_filter.html.erb
solidus_backend-3.1.1 app/views/spree/admin/variants/_table_filter.html.erb
solidus_backend-3.1.0 app/views/spree/admin/variants/_table_filter.html.erb