Sha256: da9aa4e280070e92ec65ed0074e477a3b061fcb22cd472f11826f4dde1fc11b8

Contents?: true

Size: 549 Bytes

Versions: 5

Compression:

Stored size: 549 Bytes

Contents

.filter-section
  .filter-section__lhs
    = filter_wrapper({filter_url: '/admin/<%= model %>', replacement_class: "<%= model %>-table"})
    <%- @options.filters.each do |filter| -%>
    <%- filter_arr = filter.split(':') -%>
      = cm_filter_tag("<%= filter_arr[1] %>", "<%= filter_arr[0] %>", "", 'field-area', "<%= filter_arr[0].titleize %>")
    <%- end -%>
      = clear_filters(admin_<%= model %>_path, nil, nil, "Clear all")
  .filter-section__rhs
    = link_to 'Add', <%= "new_admin_" + model.singularize + "_path" %>, class: 'filter-btn'

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
spotlight_search-0.3.4 lib/generators/spotlight_search/templates/filters.html.erb
spotlight_search-0.3.3 lib/generators/spotlight_search/templates/filters.html.erb
spotlight_search-0.3.2 lib/generators/spotlight_search/templates/filters.html.erb
spotlight_search-0.3.1 lib/generators/spotlight_search/templates/filters.html.erb
spotlight_search-0.3.0 lib/generators/spotlight_search/templates/filters.html.erb