Sha256: 72f514baf1b911e33e40cadad321cc66e46a9ad5fc05789dc7c3689b30849d96

Contents?: true

Size: 931 Bytes

Versions: 15

Compression:

Stored size: 931 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>
            <%= 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

15 entries across 15 versions & 2 rubygems

Version Path
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/blacklight-8.3.0/app/components/blacklight/facet_field_checkboxes_component.html.erb
blacklight-8.3.0 app/components/blacklight/facet_field_checkboxes_component.html.erb
blacklight-8.2.2 app/components/blacklight/facet_field_checkboxes_component.html.erb
blacklight-8.2.1 app/components/blacklight/facet_field_checkboxes_component.html.erb
blacklight-8.2.0 app/components/blacklight/facet_field_checkboxes_component.html.erb
blacklight-8.1.0 app/components/blacklight/facet_field_checkboxes_component.html.erb
blacklight-8.0.1 app/components/blacklight/facet_field_checkboxes_component.html.erb
blacklight-8.0.0 app/components/blacklight/facet_field_checkboxes_component.html.erb
blacklight-8.0.0.beta8 app/components/blacklight/facet_field_checkboxes_component.html.erb
blacklight-8.0.0.beta7 app/components/blacklight/facet_field_checkboxes_component.html.erb
blacklight-8.0.0.beta6 app/components/blacklight/facet_field_checkboxes_component.html.erb
blacklight-8.0.0.beta5 app/components/blacklight/facet_field_checkboxes_component.html.erb
blacklight-8.0.0.beta4 app/components/blacklight/facet_field_checkboxes_component.html.erb
blacklight-8.0.0.beta3 app/components/blacklight/facet_field_checkboxes_component.html.erb
blacklight-8.0.0.beta2 app/components/blacklight/facet_field_checkboxes_component.html.erb