<% content_for :table_filter_title do %> <%= t('spree.search') %> <% end %> <% content_for :table_filter do %>
<%= search_form_for [:admin, search] do |f| %>
<%= label_tag :q_name_cont, SolidusFriendlyPromotions::Promotion.human_attribute_name(:name) %> <%= f.text_field :name_cont, tabindex: 1 %>
<%= label_tag :q_customer_label_cont, SolidusFriendlyPromotions::Promotion.human_attribute_name(:customer_label) %> <%= f.text_field :customer_label_cont, tabindex: 1 %>
<%= label_tag :q_codes_value_cont, SolidusFriendlyPromotions::Promotion.human_attribute_name(:code) %> <%= f.text_field :codes_value_cont, tabindex: 1 %>
<%= label_tag :q_path_cont, SolidusFriendlyPromotions::Promotion.human_attribute_name(:path) %> <%= f.text_field :path_cont, tabindex: 1 %>
<%= label_tag :q_active, SolidusFriendlyPromotions::Promotion.human_attribute_name(:active) %> <%= f.text_field :active, value: params[:q][:active], class: 'datepicker datepicker-from fullwidth', data: { :'enable-time' => true, :'default-hour' => 0 } %>
<%= label_tag :q_promotion_category_id_eq, SolidusFriendlyPromotions::PromotionCategory.model_name.human %>
<%= f.collection_select(:promotion_category_id_eq, @promotion_categories, :id, :name, { include_blank: t(:all, scope: :spree) }, { class: 'custom-select fullwidth' }) %>
<%= label_tag :q_lane_eq, SolidusFriendlyPromotions::Promotion.human_attribute_name(:lane) %>
<%= f.select(:lane_eq, SolidusFriendlyPromotions::Promotion.lane_options, { include_blank: t(:all, scope: :spree) }, { class: 'custom-select fullwidth' }) %>
<%= button_tag t('spree.filter_results'), class: 'btn btn-primary' %>
<% end %>
<% end %>