Sha256: 258878bf1d42f31a3a6885eacc0cc8b31513fc6e735571bf32232e5bf915d334

Contents?: true

Size: 978 Bytes

Versions: 14

Compression:

Stored size: 978 Bytes

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}",
      '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: :blue, data: { action: "text-filter#changeFilter" }, size: :xs do %>
        <%= filter.button_label || "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

14 entries across 14 versions & 1 rubygems

Version Path
avo-2.7.1.pre.1 app/views/avo/base/_text_filter.html.erb
avo-2.7.0 app/views/avo/base/_text_filter.html.erb
avo-2.6.1.pre.2 app/views/avo/base/_text_filter.html.erb
avo-2.6.1.pre.1 app/views/avo/base/_text_filter.html.erb
avo-2.6.0 app/views/avo/base/_text_filter.html.erb
avo-2.5.2.pre.7 app/views/avo/base/_text_filter.html.erb
avo-2.5.2.pre.6 app/views/avo/base/_text_filter.html.erb
avo-2.5.2.pre.5 app/views/avo/base/_text_filter.html.erb
avo-2.5.2.pre.4 app/views/avo/base/_text_filter.html.erb
avo-2.5.2.pre.3 app/views/avo/base/_text_filter.html.erb
avo-2.5.2.pre.2 app/views/avo/base/_text_filter.html.erb
avo-2.5.2.pre.1 app/views/avo/base/_text_filter.html.erb
avo-2.5.1 app/views/avo/base/_text_filter.html.erb
avo-2.5.0 app/views/avo/base/_text_filter.html.erb