|
2 | 2 | <%= render_hash_as_hidden_fields(@params.except(:q, :search_field, :qt, :page, :utf8, :format, :slug, :site_slug)) %>
|
3 | 3 | <%= render_hash_as_hidden_fields(search_action_params) %>
|
4 | 4 | <div class="input-group flex-sm-row flex-md-fill">
|
5 |
| - <%= render Dcv::Response::CollapsiblePaginationComponent.new(response: helpers.instance_variable_get(:@response), theme: 'dcv_collapsible', outer_window: 1, window: 1 ) %> |
6 |
| - <%= render Dcv::SearchContext::CollapsiblePaginationComponent.new(search_context: helpers.instance_variable_get(:@search_context), search_session: helpers.instance_variable_get(:@search_session)) %> |
| 5 | + <%= render pagination_component %> |
| 6 | + <div class="input-group-prepend collapseSearch flex-fill<%= ' p-0 collapse' if pagination_component.render?%>" id="collapseQuery"> |
7 | 7 | <% unless search_fields.empty? %>
|
8 |
| - <span class="input-group-prepend p-0<%= ' hidden' if search_fields.length == 1 %>"> |
| 8 | + <span class="input-group-append p-0<%= ' hidden' if search_fields.length == 1 %>"> |
9 | 9 | <label for="search_field" class="sr-only"><%= t('blacklight.search.form.search_field.label') %></label>
|
10 | 10 | <%= select_tag(
|
11 | 11 | :search_field,
|
12 | 12 | options_for_select(
|
13 | 13 | search_fields,
|
14 | 14 | h(params[:search_field])
|
15 | 15 | ),
|
16 |
| - title: t('blacklight.search.form.search_field.title'), class: 'btn search-btn btn-primary' |
| 16 | + title: t('blacklight.search.form.search_field.title'), class: 'btn search-btn btn-primary rounded-0' |
17 | 17 | )
|
18 | 18 | %>
|
19 | 19 | <span class="sr-only"><%= t('blacklight.search.form.search_field.post_label') %></span>
|
20 | 20 | </span>
|
21 | 21 | <% end %>
|
22 | 22 | <label for="q" class="sr-only"><%= t('blacklight.search.form.q') %></label>
|
23 |
| - <%= text_field_tag :q, params[:q], :placeholder => search_placeholder_text, :class => "search_q q form-control", :id => "q" %> |
| 23 | + <%= text_field_tag :q, params[:q], :placeholder => search_placeholder_text, :class => "search_q q flex-fill", :id => "q" %> |
24 | 24 | <div class="input-group-append">
|
25 |
| - <%= link_to '<i class="fa fa-remove"></i>'.html_safe, start_over_path, :title => 'Start Over', :class => 'btn btn-outline-secondary reset-btn' if query_has_constraints? %> |
| 25 | + <%= link_to '<i class="fa fa-remove"></i>'.html_safe, start_over_path, :title => 'Start Over', :class => 'btn btn-outline-secondary reset-btn' if query_has_constraints? %> |
26 | 26 | <button class="btn btn-primary search-btn" type="submit" aria-label="Submit">
|
27 | 27 | <span class="hidden-xs"><%= (current_page?(root_url)? t('blacklight.search.form.submit') : '') %></span>
|
28 | 28 | <span class="fa fa-search"></span>
|
29 | 29 | </button>
|
30 | 30 | </div>
|
| 31 | + </div> |
31 | 32 | </div>
|
32 | 33 |
|
33 | 34 | <% end %>
|
0 commit comments