stadtratmonitor/app/views/search/_form.slim
2015-11-23 22:10:44 +01:00

15 lines
729 B
Text

= form_for @search_definition, url: search_path, method: :get do |f|
= f.text_field :query, placeholder: 'Suche…', autofocus: true
fieldset
legend Ergebnisse filtern
.row
.small-4.columns
= filter_select(f, "paper_type", "Typ", @paper_type_facets, @search_definition.paper_type)
.small-4.columns
= filter_select(f, "originator", "Einreicher", @originator_facets, @search_definition.originator)
.small-4.columns.end
label Sortierung
= f.radio_button :sort_by, :date, onchange: "this.form.submit();"
label for="sort_by_date" Nach Datum
= f.radio_button :sort_by, :score, onchange: "this.form.submit();"
label for="sort_by_score" Nach Relevanz