Sha256: 5c549026055ae785b00e60ec85ed1109bf8739f9bc9fd1d82a4970b074000ca4

Contents?: true

Size: 1008 Bytes

Versions: 4

Compression:

Stored size: 1008 Bytes

Contents

<% content_for :table_filter_title do %>
  <%= Spree.t(: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-xs-10">
      <div data-hook="admin_variants_index_search" class="field">
        <%= f.label :variant_search_term, Spree.t(:variant_search_placeholder) %>
        <%= text_field_tag :variant_search_term, params[:variant_search_term], :class => "fullwidth", :placeholder => Spree.t(:variant_search_placeholder) %>
      </div>
    </div>

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

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
solidus_backend-2.1.1 app/views/spree/admin/variants/_table_filter.html.erb
solidus_backend-2.1.0 app/views/spree/admin/variants/_table_filter.html.erb
solidus_backend-2.1.0.rc1 app/views/spree/admin/variants/_table_filter.html.erb
solidus_backend-2.1.0.beta1 app/views/spree/admin/variants/_table_filter.html.erb