<div class="col-12 col-md-6 col-lg-4 col-xl-3">
  <div class="field">
    <%= label_tag "q_#{ransack}", label.respond_to?(:call) ? label.call : label %>
    <%= f.text_field ransack, class: 'variant_autocomplete fullwidth', value: params[:q][ransack] %>
  </div>
</div>
