app/views/spotlight/searches/_form.html.erb in blacklight-spotlight-3.0.0.rc5 vs app/views/spotlight/searches/_form.html.erb in blacklight-spotlight-3.0.0.rc6
- old
+ new
@@ -37,11 +37,11 @@
<%= f.text_area :long_description, rows: 5 %>
<%= f.form_group :search_box, label: { text: t(:'.search_box.label'), class: 'pt-0' }, help: t(:'.search_box.help_block') do %>
<%= f.check_box :search_box, label: t(:'.search_box.checkbox_label') %>
<% end %>
<%= f.form_group label: { text: t(:".default_index_view_type"), class: 'pt-0' } do %>
- <% available_document_index_views.each do |view| %>
- <%= f.radio_button :default_index_view_type, view, label: view_label(view) %>
+ <% available_document_index_views.each do |key, view| %>
+ <%= f.radio_button :default_index_view_type, key, label: view.display_label(key) %>
<% end %>
<% end %>
<% unless @search.query_params.blank? %>
<div class="form-group row">
<label class="col-md-2 col-sm-2 col-form-label"><%= t(:".query_params") %></label>