app/views/spotlight/searches/_form.html.erb in blacklight-spotlight-3.0.0.rc2 vs app/views/spotlight/searches/_form.html.erb in blacklight-spotlight-3.0.0.rc3
- old
+ new
@@ -15,10 +15,14 @@
<li role="presentation" class="nav-item">
<a href="#search-description" aria-controls="search-description" role="tab" data-toggle="tab" class="nav-link active"><%= t(:'.search_description') %></a>
</li>
<li role="presentation" class="nav-item">
+ <a href="#search-group" aria-controls="search-group" role="tab" data-toggle="tab" class="nav-link"><%= t(:'.search_group') %></a>
+ </li>
+
+ <li role="presentation" class="nav-item">
<a href="#search-masthead" aria-controls="search-masthead" role="tab" data-toggle="tab" class="nav-link"><%= t(:'.search_masthead') %></a>
</li>
<li role="presentation" class="nav-item">
<a href="#search-thumbnail" aria-controls="search-thumbnail" role="tab" data-toggle="tab" class="nav-link"><%= t(:'.search_thumbnail') %></a>
@@ -46,9 +50,17 @@
<div class="appliedParams card card-body bg-light d-block">
<%= render_constraints(@search.query_params) %>
</div>
</div>
</div>
+ <% end %>
+ </div>
+ <div role="tabpanel" class="tab-pane" id="search-group">
+ <% if @groups.present? %>
+ <p class="instructions"><%= t(:'.group.help') %></p>
+ <%= f.collection_check_boxes(:group_ids, @groups, :id, :title, hide_label: true) %>
+ <% else %>
+ <p class="instructions"><%= t(:'.group.help_no_groups') %></p>
<% end %>
</div>
<div role="tabpanel" class="tab-pane" id="search-masthead">
<%= f.fields_for :masthead, (@search.masthead || @search.build_masthead) do |m| %>
<p class="instructions"><%= t(:'.masthead.help') %></p>