-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes search bar display on homepage
- Loading branch information
1 parent
f717742
commit d72f8ca
Showing
4 changed files
with
36 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<%= form_tag search_action_url, :method => :get, :class => 'search-query-form clearfix' do %> | ||
<%= render_hash_as_hidden_fields(params_for_search().except(:q, :search_field, :qt, :page, :utf8)) %> | ||
<% unless search_fields.empty? %> | ||
<label for="search_field" class="sr-only"><%= t('blacklight.search.form.search_field.label') %></label> | ||
<%= select_tag(:search_field, options_for_select(search_fields, h(params[:search_field])), :title => t('blacklight.search.form.search_field.title'), :class=>"search_field form-control") %> | ||
<span class="sr-only"><%= t('blacklight.search.form.search_field.post_label') %></span> | ||
<% end %> | ||
<div class="input-group search-input-group"> | ||
<label for="q" class="sr-only"><%= t('blacklight.search.form.q') %></label> | ||
<%= text_field_tag :q, params[:q], :placeholder => t('blacklight.search.form.q'), :class => "search_q q form-control", :id => "q", :autofocus => should_autofocus_on_search_box? %> | ||
|
||
<span class="input-group-btn"> | ||
<button type="submit" class="btn btn-primary search-btn" id="search"> | ||
<span class="submit-search-text"><%=t('blacklight.search.form.submit')%></span> | ||
<span class="glyphicon glyphicon-search"></span> | ||
</button> | ||
</span> | ||
</div> | ||
<% end %> |