reenable select boxes for filter by facets

This commit is contained in:
Lars Henrik Mai 2015-06-22 21:33:40 +02:00 committed by Andreas Haller
parent 2caec3d721
commit 2b7ab65432
5 changed files with 21 additions and 9 deletions

View file

@ -1,13 +1,10 @@
= form_tag(search_path, method: :get)
= text_field_tag(:q, params[:q], placeholder: 'Suche…', autofocus: true)
- if false #@show_filters
- if @show_filters
fieldset
legend Ergebnisse filtern
.row
.small-4.columns
= label "paper_type", "Typ"
= select_tag "paper_type", options_for_select(@paper_types_found, @paper_type), include_blank: true, :onchange => "this.form.submit();"
= filter_select("paper_type", "Typ", @paper_type_facets, @paper_type)
.small-4.columns.end
= label "originator", "Einreicher"
= select_tag "originator", options_for_select(@originators_found, @originator), include_blank: true, :onchange => "this.form.submit();"
= filter_select("originator", "Einreicher", @originator_facets, @originator)