Sha256: 7533543adfa7fc92e261093bfd5312461dde7b7276dd3548f51a84f8e6b00dfa

Contents?: true

Size: 955 Bytes

Versions: 8

Compression:

Stored size: 955 Bytes

Contents

<%= render(@layout.new(facet_field: @facet_field)) do |component| %>
  <% component.with_label do %>
    <%= @facet_field.label %>
  <% end %>

  <% component.with_body do %>
    <ul class="facet-values list-unstyled blacklight-facet-checkboxes">
      <% presenters.each_with_index do |presenter, idx| -%>
        <li>
          <span class="facet-checkbox">
            <%= check_box_tag "f_inclusive[#{@facet_field.key}][]", presenter.value, presenter.selected?, id: "f_inclusive_#{@facet_field.key}_#{idx}"%>
          </span>

          <span class="label-and-count">
            <%= label_tag "f_inclusive_#{@facet_field.key}_#{idx}" do %>
              <span class="facet-label"><%= presenter.label %></span>
              <span class="facet-count"><%= t('blacklight.search.facets.count', number: number_with_delimiter(presenter.hits)) %></span>
            <% end %>
          <span>
        </li>
      <% end -%>
    </ul>
  <% end %>
<% end %>

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
blacklight-7.38.0 app/components/blacklight/facet_field_checkboxes_component.html.erb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/blacklight-7.37.0/app/components/blacklight/facet_field_checkboxes_component.html.erb
blacklight-7.37.0 app/components/blacklight/facet_field_checkboxes_component.html.erb
blacklight-7.36.2 app/components/blacklight/facet_field_checkboxes_component.html.erb
blacklight-7.36.1 app/components/blacklight/facet_field_checkboxes_component.html.erb
blacklight-7.36.0 app/components/blacklight/facet_field_checkboxes_component.html.erb
blacklight-7.35.0 app/components/blacklight/facet_field_checkboxes_component.html.erb
blacklight-7.34.0 app/components/blacklight/facet_field_checkboxes_component.html.erb