aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/compliance_control_sets
diff options
context:
space:
mode:
authorZog2018-02-02 12:43:55 +0100
committerZog2018-02-02 12:43:55 +0100
commit771084101913ec0fb6d5790786ae533b5413f9b2 (patch)
tree02f57ee2661e2358e49067459dd9870bb7de18ce /app/views/compliance_control_sets
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/compliance_control_sets')
-rw-r--r--app/views/compliance_control_sets/_filters.html.slim10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/views/compliance_control_sets/_filters.html.slim b/app/views/compliance_control_sets/_filters.html.slim
index 6a5d3ac44..4348defac 100644
--- a/app/views/compliance_control_sets/_filters.html.slim
+++ b/app/views/compliance_control_sets/_filters.html.slim
@@ -1,16 +1,16 @@
= search_form_for @q_for_form, url: compliance_control_sets_path, builder: SimpleForm::FormBuilder, class: 'form form-filter' do |f|
.ffg-row
- .input-group.search_bar
+ .input-group.search_bar class=filter_item_class(params[:q], :name_cont)
= f.search_field :name_cont, class: 'form-control', placeholder: t('compliance_control_sets.filters.name')
span.input-group-btn
button.btn.btn-default type='submit'
span.fa.fa-search
.ffg-row
- .form-group.togglable
+ .form-group.togglable class=filter_item_class(params[:q], :organisation_name_eq_any)
= f.label t('activerecord.models.organisation.one'), required: false, class: 'control-label'
= f.input :organisation_name_eq_any, collection: organisations_filters_values, as: :check_boxes, label: false, label_method: lambda {|w| ("<span>#{w.name}</span>").html_safe}, required: false, wrapper_html: {class: 'checkbox_list'}
-
- .form-group.togglable
+
+ .form-group.togglable class=filter_item_class(params[:q], :updated_at)
= f.label Import.human_attribute_name(:updated_at), required: false, class: 'control-label'
.filter_menu
= f.simple_fields_for :updated_at do |p|
@@ -19,4 +19,4 @@
.actions
= link_to t('actions.erase'), @compliance_control_set, class: 'btn btn-link'
- = f.submit t('actions.filter'), class: 'btn btn-default', id: 'compliance_control_set_filter_btn' \ No newline at end of file
+ = f.submit t('actions.filter'), class: 'btn btn-default', id: 'compliance_control_set_filter_btn'