mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2025-01-22 13:37:58 +01:00
Add option for sort criteria to form
This commit is contained in:
parent
c434dc3e85
commit
8929f07745
2 changed files with 9 additions and 2 deletions
|
@ -9,7 +9,8 @@ class SearchController < ApplicationController
|
|||
def index
|
||||
@paper_type = params[:paper_type]
|
||||
@originator = params[:originator]
|
||||
options = params.slice(:paper_type, :originator)
|
||||
|
||||
options = params.slice(:paper_type, :originator, :sort_by)
|
||||
|
||||
@show_filters = true
|
||||
|
||||
|
|
|
@ -6,5 +6,11 @@
|
|||
.row
|
||||
.small-4.columns
|
||||
= filter_select("paper_type", "Typ", @paper_type_facets, @paper_type)
|
||||
.small-4.columns.end
|
||||
.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
|
||||
|
|
Loading…
Reference in a new issue