mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2025-04-20 07:11:33 +02:00
reenable select boxes for filter by facets
This commit is contained in:
parent
2caec3d721
commit
2b7ab65432
5 changed files with 21 additions and 9 deletions
|
@ -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)
|
||||
|
|
|
@ -2,7 +2,7 @@ div
|
|||
= render 'search/form'
|
||||
|
||||
|
||||
- if params[:q].present?
|
||||
- if false # params[:q].present?
|
||||
.row
|
||||
.small-4.columns
|
||||
= facet_list(@paper_type_facets)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue