mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2025-04-20 15:11:35 +02:00
Use PaperSearch definition in controller
This commit is contained in:
parent
08d32c7d91
commit
47f46716da
4 changed files with 32 additions and 27 deletions
|
@ -1,16 +1,15 @@
|
|||
= form_tag(search_path, method: :get)
|
||||
= text_field_tag(:q, params[:q], placeholder: 'Suche…', autofocus: true)
|
||||
- if @show_filters
|
||||
fieldset
|
||||
legend Ergebnisse filtern
|
||||
.row
|
||||
.small-4.columns
|
||||
= filter_select("paper_type", "Typ", @paper_type_facets, @paper_type)
|
||||
.small-4.columns
|
||||
= filter_select("originator", "Einreicher", @originator_facets, @originator)
|
||||
.small-4.columns.end
|
||||
label Sortierung
|
||||
input type="radio" name="sort_by" value="date" id="sort_by_date"
|
||||
label for="sort_by_date" Nach Datum
|
||||
input type="radio" name="sort_by" value="score" id="sort_by_score"
|
||||
label for="sort_by_score" Nach Relevanz
|
||||
= text_field_tag(:q, @search_definition.query, placeholder: 'Suche…', autofocus: true)
|
||||
fieldset
|
||||
legend Ergebnisse filtern
|
||||
.row
|
||||
.small-4.columns
|
||||
= filter_select("paper_type", "Typ", @paper_type_facets, @search_definition.paper_type)
|
||||
.small-4.columns
|
||||
= filter_select("originator", "Einreicher", @originator_facets, @search_definition.originator)
|
||||
.small-4.columns.end
|
||||
label Sortierung
|
||||
input type="radio" name="sort_by" value="date" id="sort_by_date"
|
||||
label for="sort_by_date" Nach Datum
|
||||
input type="radio" name="sort_by" value="score" id="sort_by_score"
|
||||
label for="sort_by_score" Nach Relevanz
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue