Sha256: b745db97e40e3dbf73ef8d946a76bd3f5d92cc31f0524d184f410820f2336811

Contents?: true

Size: 1.35 KB

Versions: 2

Compression:

Stored size: 1.35 KB

Contents

.filtered-results-header._filtered-results-header
  %form.filtered-results-form{ filter_form_args }
    .header-top-row.mb-4.d-flex.justify-content-between.align-items-center
      .filter-badges._filter-closers
        - removables = removable_filters
        - removables.each do |key, value|
          - filter = filter_hash_without key, value
          %a.btn.btn-sm.btn-outline-primary.m-1.ms-0{ "data-filter": JSON(filter),
                                                      class: "filter-closer close-filter-#{key}" }
            = "#{filter_label key}: "
            %span.fw-bold
              = filter_closer_value key, value

            = icon_tag :remove, class: "ms-2"
        - if removables.size > 1
          %a.clear-filters.m-1.ms-0{ "data-filter": "{}", href: "#" }
            Clear All
         

      ._filters-button.ms-3
        %a.text-reset.fw-bold{ "data-bs": { toggle: "offcanvas",
                                            target: "##{offcanvas_filter_id}" },
                               title: "All Filters",
                               href: "" }
          = icon_tag :filter_list
          ALL FILTERS

    .header-middle-row.my-4
      = render_filtered_results_visualization
    .header-bottom-row.mb-2.mt-4.d-flex.justify-content-between.align-items-center
      = render_filtered_results_stats
      = render_filter_sort_dropdown

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
card-mod-filter-0.3 set/abstract/0_filter/filter_form/filtered_results_header.haml
card-mod-filter-0.2 set/abstract/0_filter/filter_form/filtered_results_header.haml