aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/referential_lines
diff options
context:
space:
mode:
authorZog2018-02-02 12:43:55 +0100
committerZog2018-02-02 12:43:55 +0100
commit771084101913ec0fb6d5790786ae533b5413f9b2 (patch)
tree02f57ee2661e2358e49067459dd9870bb7de18ce /app/views/referential_lines
parent6300165062bacc73bf900723c1dbed1d69425c95 (diff)
downloadchouette-core-771084101913ec0fb6d5790786ae533b5413f9b2.tar.bz2
Refs #5832 @1h; Show active filters5832-fix-filter-by-stopareas-on-vjs-index
Diffstat (limited to 'app/views/referential_lines')
-rw-r--r--app/views/referential_lines/_filters.html.slim4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/referential_lines/_filters.html.slim b/app/views/referential_lines/_filters.html.slim
index 379d6234f..501f61c16 100644
--- a/app/views/referential_lines/_filters.html.slim
+++ b/app/views/referential_lines/_filters.html.slim
@@ -1,13 +1,13 @@
= search_form_for @q, url: referential_line_path(@referential, @line), class: 'form form-filter' do |f|
.ffg-row
- .input-group.search_bar
+ .input-group.search_bar class=filter_item_class(params[:q], :name_or_objectid_cont)
= f.search_field :name_or_objectid_cont, class: 'form-control', placeholder: "Indiquez un nom d'itinéraire ou un ID..."
span.input-group-btn
button.btn.btn-default#search-btn type='submit'
span.fa.fa-search
.ffg-row
- .form-group.togglable
+ .form-group.togglable class=filter_item_class(params[:q], :wayback_eq_any)
= f.label Chouette::Route.human_attribute_name(:wayback), required: false, class: 'control-label'
= f.input :wayback_eq_any, class: 'form-control', collection: Chouette::Route.wayback.values, as: :check_boxes, label: false, required: false, wrapper_html: { class: 'checkbox_list'}, label_method: lambda{|l| ("<span>" + t("enumerize.route.wayback.#{l}") + "</span>").html_safe}