Sha256: 88577b5c64a001d7d72c999de6ce2399cf6059b36a68969fae6b62776c086739

Contents?: true

Size: 881 Bytes

Versions: 7

Compression:

Stored size: 881 Bytes

Contents

<%
  begin
    decoded_filters_param = JSON.parse(Base64.decode64(params[:filters]))
    set_value = decoded_filters_param[filter.class.to_s]
  rescue => exception
    set_value = filter.default
  end
%>
<div data-controller="select-filter" data-filter-name="<%= filter.name %>">
  <%= filter_wrapper name: filter.name do %>
    <%= select_tag filter.id, options_for_select(filter.options.invert, set_value),
      class: input_classes('w-full mb-0'),
      include_blank: '—',
      id: "avo_filters_#{filter.id.parameterize.underscore}",
      'data-filter-class': filter.class,
      'data-select-filter-target': 'selector',
      'data-action': "change->select-filter#changeFilter"
    %>
    <%= link_to 'url_redirect', request.url, data: { 'select-filter-target': 'urlRedirect', 'turbo-frame': params[:turbo_frame] }, style: 'hidden', class: 'hidden' %>
  <% end %>
</div>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
avo-2.3.1.pre.6 app/views/avo/base/_select_filter.html.erb
avo-2.3.1.pre.5 app/views/avo/base/_select_filter.html.erb
avo-2.3.1.pre.4 app/views/avo/base/_select_filter.html.erb
avo-2.3.1.pre.3 app/views/avo/base/_select_filter.html.erb
avo-2.3.1.pre.2 app/views/avo/base/_select_filter.html.erb
avo-2.3.0 app/views/avo/base/_select_filter.html.erb
avo-2.2.2 app/views/avo/base/_select_filter.html.erb