Skip to content

Commit

Permalink
Merge pull request #938 from sul-dlss/move-date-range
Browse files Browse the repository at this point in the history
Moves date range input to top of limits section in advanced search form
  • Loading branch information
Jessie Keck committed Sep 20, 2014
2 parents d74647a + 10f38c5 commit fb7998f
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions app/views/advanced/_advanced_search_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,8 @@
<h2 class="limit-criteria-heading"><%= t('blacklight_advanced_search.form.limit_criteria_heading_html')%></h2>

<div id="advanced_search_facets" class="limit_input">
<div class="facets-list col-sm-offset-3 col-sm-9">
<% if blacklight_config.try(:advanced_search).try {|h| h[:form_facet_partial] } %>
<%= render blacklight_config.advanced_search[:form_facet_partial] %>
<% else %>
<%= render 'advanced_search_facets' %>
<% end %>
</div>

<div class="form-group advanced-search-facet">
<%= label_tag "pub_year_tisim", :class => "col-sm-3 control-label" do %>Publication year range<% end %>

<div class="col-sm-8 form-group row">
<div class="col-sm-3">
<%= render_range_input("pub_year_tisim", :begin, "from year") %>
Expand All @@ -46,7 +37,14 @@
<%= render_range_input("pub_year_tisim", :end, "to year") %>
</div>
</div>
</div>

<div class="facets-list col-sm-offset-3 col-sm-9">
<% if blacklight_config.try(:advanced_search).try {|h| h[:form_facet_partial] } %>
<%= render blacklight_config.advanced_search[:form_facet_partial] %>
<% else %>
<%= render 'advanced_search_facets' %>
<% end %>
</div>
</div>
</div>
Expand Down

0 comments on commit fb7998f

Please sign in to comment.