Sha256: 81d9fc805e53a3ba12e51e34677e952827291f4680a76c83cc23dc4669665e27

Contents?: true

Size: 1.18 KB

Versions: 86

Compression:

Stored size: 1.18 KB

Contents

<div data-controller="toggle-panel">
  <div class="relative w-full flex justify-between z-30">
    <%= a_button class: 'focus:outline-none',
      color: 'blue-gray',
      title: t('avo.click_to_reveal_filters'),
      'data-button': 'resource-filters',
      'data-action': 'click->toggle-panel#togglePanel',
      'data-tippy': 'tooltip' do
    %>
      <%= svg 'filter' %> <%= t 'avo.filters' %>
    <% end %>

    <div
      class="absolute block inset-auto right-0 top-full bg-white min-w-300px mt-2 z-20 shadow-context rounded-xl hidden divide-y divide-gray-300"
      data-toggle-panel-target="panel"
    >
      <% @filters.each do |filter| %>
        <%= render partial: filter.class.template, locals: {filter: filter} %>
      <% end %>

      <div class="p-4 border-gray-300 border-t">
        <% if params[:filters].present? %>
          <%= a_link t('avo.reset_filters'), resources_path(@resource.model_class, filters: nil, keep_query_params: true), color: 'blue-gray', class: 'w-full justify-center' %>
        <% else %>
          <%= a_button t('avo.reset_filters'), color: 'blue-gray', class: 'w-full justify-center', disabled: true %>
        <% end %>
      </div>
    </div>
  </div>
</div>

Version data entries

86 entries across 86 versions & 1 rubygems

Version Path
avo-1.8.2 app/views/avo/base/_filters.html.erb
avo-1.8.1 app/views/avo/base/_filters.html.erb
avo-1.8.0 app/views/avo/base/_filters.html.erb
avo-1.7.3 app/views/avo/base/_filters.html.erb
avo-1.7.3.pre.1 app/views/avo/base/_filters.html.erb
avo-1.7.2 app/views/avo/base/_filters.html.erb
avo-1.7.1 app/views/avo/base/_filters.html.erb
avo-1.7.0 app/views/avo/base/_filters.html.erb
avo-1.6.4.pre.1 app/views/avo/base/_filters.html.erb
avo-1.6.3.pre.3 app/views/avo/base/_filters.html.erb
avo-1.6.3.pre.2 app/views/avo/base/_filters.html.erb
avo-1.6.3.pre.1 app/views/avo/base/_filters.html.erb
avo-1.6.2.pre.1 app/views/avo/base/_filters.html.erb
avo-1.6.1 app/views/avo/base/_filters.html.erb
avo-1.6.0 app/views/avo/base/_filters.html.erb
avo-1.5.5 app/views/avo/base/_filters.html.erb
avo-1.5.4 app/views/avo/base/_filters.html.erb
avo-1.5.3 app/views/avo/base/_filters.html.erb
avo-1.5.2 app/views/avo/base/_filters.html.erb
avo-1.5.1 app/views/avo/base/_filters.html.erb