Sha256: 91bc7d486b64afc8f075eb9fde32a372d8d09dc1c235130b0e8c40b40db71e87

Contents?: true

Size: 843 Bytes

Versions: 147

Compression:

Stored size: 843 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">
  <%= 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

147 entries across 147 versions & 1 rubygems

Version Path
avo-1.25.2 app/views/avo/base/_select_filter.html.erb
avo-2.2.1 app/views/avo/base/_select_filter.html.erb
avo-2.2.0 app/views/avo/base/_select_filter.html.erb
avo-2.1.2.pre2 app/views/avo/base/_select_filter.html.erb
avo-2.1.2.pre1 app/views/avo/base/_select_filter.html.erb
avo-1.25.1 app/views/avo/base/_select_filter.html.erb
avo-2.1.1 app/views/avo/base/_select_filter.html.erb
avo-2.1.0 app/views/avo/base/_select_filter.html.erb
avo-2.0.0 app/views/avo/base/_select_filter.html.erb
avo-1.25.0 app/views/avo/base/_select_filter.html.erb
avo-1.24.2 app/views/avo/base/_select_filter.html.erb
avo-1.24.1 app/views/avo/base/_select_filter.html.erb
avo-1.24.0 app/views/avo/base/_select_filter.html.erb
avo-1.23.0 app/views/avo/base/_select_filter.html.erb
avo-1.22.4 app/views/avo/base/_select_filter.html.erb
avo-1.22.3 app/views/avo/base/_select_filter.html.erb
avo-1.22.2 app/views/avo/base/_select_filter.html.erb
avo-1.22.1 app/views/avo/base/_select_filter.html.erb
avo-1.22.1.pre.2 app/views/avo/base/_select_filter.html.erb
avo-1.22.1.pre.1 app/views/avo/base/_select_filter.html.erb