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
|
@ -10,4 +10,17 @@ module SearchHelper
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
def filter_select(name, desc, facets, selected)
|
||||
capture do
|
||||
concat(label name, desc)
|
||||
concat(
|
||||
select_tag name,
|
||||
options_from_collection_for_select(facets, :term, :term, selected),
|
||||
include_blank: true,
|
||||
onchange: "this.form.submit();"
|
||||
)
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue