aboutsummaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
authorGuillaume2017-09-26 11:56:33 +0200
committerGuillaume2017-09-26 11:56:33 +0200
commit00aad1349ae72d80d034f84c3b4ec360e1033511 (patch)
tree3244df100f903966528560d05a329cc7b2143c28 /app/views
parent733548a996d5e66c740f59d313eb031ddfcc9116 (diff)
downloadchouette-core-00aad1349ae72d80d034f84c3b4ec360e1033511.tar.bz2
add date filter to compliance_control_sets Refs #4466
Diffstat (limited to 'app/views')
-rw-r--r--app/views/compliance_control_sets/_filters.html.slim7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/views/compliance_control_sets/_filters.html.slim b/app/views/compliance_control_sets/_filters.html.slim
index 587f74ce4..56cac8bd2 100644
--- a/app/views/compliance_control_sets/_filters.html.slim
+++ b/app/views/compliance_control_sets/_filters.html.slim
@@ -9,6 +9,13 @@
.form-group.togglable
= 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
+ = f.label Import.human_attribute_name(:updated_at), required: false, class: 'control-label'
+ .filter_menu
+ = f.simple_fields_for :updated_at do |p|
+ = p.input :begin, as: :date, label: false, wrapper_html: {class: 'date smart_date filter_menu-item'}, default: @begin_range, include_blank: @begin_range ? false : true
+ = p.input :end, as: :date, label: false, wrapper_html: {class: 'date smart_date filter_menu-item'}, default: @end_range, include_blank: @end_range ? false : true
.actions
= link_to t('actions.erase'), @compliance_control_set, class: 'btn btn-link'