Commit 65d446aa authored by Chrysanthi Lagodimou's avatar Chrysanthi Lagodimou
Browse files

filter spv index per semester (filters on previous filter)

parent d8e450dd
Pipeline #30554 passed with stage
in 56 minutes and 55 seconds
......@@ -2,4 +2,5 @@ nav.navbar.section-navigation
hr
ul.list-inline
li= button_link 'Neuen Semester Prozess erstellen', new_semester_process_path, dimension: 'sm'
li= render 'semester_filter'
hr
- semester_filter = params[:semester].presence
.btn-group
button.btn.btn-default.dropdown-toggle type='button' data-toggle='dropdown' aria-label="Semester" aria-haspopup='true' aria-expanded='false' class="btn-md"
= "Semester: "
= semester_filter ? params[:semester] : @semester
= ' '
span.caret aria-hidden='true'
ul.dropdown-menu
li
-@semester.collection.each do |(name, code)|
li= link_to name[0..15], request_params_filter(semester: code)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment