Sha256: 45a4cd3fa4cc310705eecfa1367fdb647d27da27e2f372da9ed0f68c0c75dd80

Contents?: true

Size: 1.02 KB

Versions: 37

Compression:

Stored size: 1.02 KB

Contents

<div
  data-controller="text-filter"
  data-filter-name="<%= filter.name %>"
  data-text-filter-keep-filters-panel-open-value="<%= @resource.keep_filters_panel_open %>"
>
  <%= filter_wrapper name: filter.name do %>
    <%= text_field_tag filter.id, filter.applied_or_default_value(@applied_filters),
      class: input_classes('w-full mb-0'),
      id: "avo_filters_#{filter.id.parameterize.underscore}",
      placeholder: filter.class.empty_message,
      'data-filter-class': filter.class.to_s,
      'data-text-filter-target': 'text',
      'data-action': 'keypress->text-filter#tryToSubmit'
    %>
    <div class="flex justify-end">
      <%= a_button class: 'mt-4', color: :primary, data: { action: "text-filter#changeFilter" }, size: :xs do %>
        <%= filter.button_label || "#{t("avo.filter_by")} #{filter.name}" %>
      <% end %>
    </div>
    <%= link_to 'url_redirect', request.url, data: { 'text-filter-target': 'urlRedirect', 'turbo-frame': params[:turbo_frame] }, style: 'hidden', class: 'hidden' %>
  <% end %>
</div>

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
avo-3.11.5 app/views/avo/base/_text_filter.html.erb
avo-3.11.4 app/views/avo/base/_text_filter.html.erb
avo-3.11.3 app/views/avo/base/_text_filter.html.erb
avo-3.11.2 app/views/avo/base/_text_filter.html.erb
avo-3.11.1 app/views/avo/base/_text_filter.html.erb
avo-3.11.0 app/views/avo/base/_text_filter.html.erb
avo-3.10.10 app/views/avo/base/_text_filter.html.erb
avo-3.10.9 app/views/avo/base/_text_filter.html.erb
avo-3.10.8 app/views/avo/base/_text_filter.html.erb
avo-3.10.7 app/views/avo/base/_text_filter.html.erb
avo-3.10.6 app/views/avo/base/_text_filter.html.erb
avo-3.10.5 app/views/avo/base/_text_filter.html.erb
avo-3.10.4 app/views/avo/base/_text_filter.html.erb
avo-3.10.3 app/views/avo/base/_text_filter.html.erb
avo-3.10.2 app/views/avo/base/_text_filter.html.erb
avo-3.10.1 app/views/avo/base/_text_filter.html.erb
avo-3.10.0 app/views/avo/base/_text_filter.html.erb