mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2025-04-20 15:11:35 +02:00
Start using form builder for Paper Search Query
This commit is contained in:
parent
47f46716da
commit
10921716c5
2 changed files with 6 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
|||
= form_tag(search_path, method: :get)
|
||||
= form_for(@search_definition, url: search_path, method: :get) do |f|
|
||||
= text_field_tag(:q, @search_definition.query, placeholder: 'Suche…', autofocus: true)
|
||||
fieldset
|
||||
legend Ergebnisse filtern
|
||||
|
@ -9,7 +9,7 @@
|
|||
= 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"
|
||||
= f.radio_button :sort_by, :date
|
||||
label for="sort_by_date" Nach Datum
|
||||
input type="radio" name="sort_by" value="score" id="sort_by_score"
|
||||
= f.radio_button :sort_by, :score
|
||||
label for="sort_by_score" Nach Relevanz
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue