Sha256: 8cda91b7e617ac7cdbdd42f8a6070bc53be92c23457fb947177c317bc2481a62

Contents?: true

Size: 949 Bytes

Versions: 57

Compression:

Stored size: 949 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.options.keys
  end
%>
<div data-controller="multiple-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'),
      multiple: true,
      id: "avo_filters_#{filter.id.parameterize.underscore}",
      'data-filter-class': filter.class.to_s,
      'data-multiple-select-filter-target': 'selector'
    %>
    <%= a_button "Filter by #{filter.name}", class: 'mt-4', color: 'blue', data: { action: "multiple-select-filter#changeFilter" } %>
    <%= link_to 'url_redirect', request.url, data: { 'multiple-select-filter-target': 'urlRedirect', 'turbo-frame': params[:turbo_frame] }, style: 'hidden', class: 'hidden' %>
  <% end %>
</div>

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
avo-1.25.2 app/views/avo/base/_multiple_select_filter.html.erb
avo-1.25.1 app/views/avo/base/_multiple_select_filter.html.erb
avo-1.25.0 app/views/avo/base/_multiple_select_filter.html.erb
avo-1.24.2 app/views/avo/base/_multiple_select_filter.html.erb
avo-1.24.1 app/views/avo/base/_multiple_select_filter.html.erb
avo-1.24.0 app/views/avo/base/_multiple_select_filter.html.erb
avo-1.23.0 app/views/avo/base/_multiple_select_filter.html.erb
avo-1.22.4 app/views/avo/base/_multiple_select_filter.html.erb
avo-1.22.3 app/views/avo/base/_multiple_select_filter.html.erb
avo-1.22.2 app/views/avo/base/_multiple_select_filter.html.erb
avo-1.22.1 app/views/avo/base/_multiple_select_filter.html.erb
avo-1.22.1.pre.2 app/views/avo/base/_multiple_select_filter.html.erb
avo-1.22.1.pre.1 app/views/avo/base/_multiple_select_filter.html.erb
avo-1.22.0 app/views/avo/base/_multiple_select_filter.html.erb
avo-1.22.0.pre.1 app/views/avo/base/_multiple_select_filter.html.erb
avo-1.21.1.pre.1 app/views/avo/base/_multiple_select_filter.html.erb
avo-1.21.0 app/views/avo/base/_multiple_select_filter.html.erb
avo-1.20.2.pre.2 app/views/avo/base/_multiple_select_filter.html.erb
avo-1.20.2.pre.1 app/views/avo/base/_multiple_select_filter.html.erb
avo-1.21.0.pre.1 app/views/avo/base/_multiple_select_filter.html.erb