.card.w-100.nodblclick .card-body ._filter-widget // FILTERING PROTOTYPES ._filter-input-field-prototypes.d-none - categories.each do |key, category| = haml_partial :filter_input, key: key, category: category // FORM %form._filter-form{form_args, "accept-charset": "UTF-8", "data-remote": "true", method: "get"} - not_ids = params.dig :filter, :not_ids %input{ type: :hidden, name: "filter[not_ids]", class: "_not-ids", value: not_ids } = render_quick_filters .filter-and-sort.d-flex.flex-wrap - if sort_input_field.present? // SORTING .sort-in-filter-form %i.fa.fa-sort.filter-section-icon .input-group.input-group-sm.flex-nowrap.sort-input-group.mb-2.mr-2 .input-group-prepend %span.input-group-text.text-muted Sort = sort_input_field // FILTERING .filter-in-filter-form %i.fa.fa-filter.filter-section-icon ._filter-container.d-flex.flew-row.flex-wrap // FILTERS inserted here // ADD FILTER DROPDOWN .dropdown._add-filter-dropdown.mr-2 %button.btn.btn-sm.btn-primary.dropdown-toggle{"aria-expanded": "false", "aria-haspopup": "true", "data-toggle": "dropdown", type: "button" } More Filters .dropdown-menu - categories.each do |key, category| %a{ class: "dropdown-item _filter-category-select", href: "#", "data-category": key, "data-label": category[:label], "data-active": ("true" if category[:active])} = category[:label] // RESET BUTTON ._reset-filter{ "data-reset": reset_filter_data } %button.btn.btn-sm.btn-secondary{ type: "button" } %i.fa.fa-sync-alt