aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/compliance_check_sets
diff options
context:
space:
mode:
authorLuc Donnet2017-11-30 22:12:24 +0100
committerGitHub2017-11-30 22:12:24 +0100
commit8e80415f70e0c181643e522976b1cf8bf9f9abfd (patch)
treeee5386f078127dcc88016c2c8c55dc0ba0153d1b /app/views/compliance_check_sets
parent2a62685b678f78492b9ded08bfb5234fd14cb05a (diff)
parent6676460eedb0d45938f67e2f8fe760a8e7001623 (diff)
downloadchouette-core-8e80415f70e0c181643e522976b1cf8bf9f9abfd.tar.bz2
Merge pull request #120 from af83/4986-compliance_control_sets_fix
Refs #4986 Add new filer by compliance control set name, add new styl…
Diffstat (limited to 'app/views/compliance_check_sets')
-rw-r--r--app/views/compliance_check_sets/_filters.html.slim8
1 files changed, 6 insertions, 2 deletions
diff --git a/app/views/compliance_check_sets/_filters.html.slim b/app/views/compliance_check_sets/_filters.html.slim
index 3051bda64..bf929bc08 100644
--- a/app/views/compliance_check_sets/_filters.html.slim
+++ b/app/views/compliance_check_sets/_filters.html.slim
@@ -10,14 +10,18 @@
.form-group.togglable
= f.label t('activerecord.attributes.compliance_check_set.assigned_to'), required: false, class: 'control-label'
= f.input :parent_type_eq_any, collection: ComplianceCheckSet.order('parent_type'), as: :check_boxes, label: false, label_method: lambda {|w| ("<span>#{w}</span>").html_safe}, required: false, wrapper_html: {class: 'checkbox_list'}
-
.form-group.togglable
= f.label Import.human_attribute_name(:created_at), required: false, class: 'control-label'
.filter_menu
= f.simple_fields_for :created_at do |p|
= p.input :start_date, 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_date, as: :date, label: false, wrapper_html: {class: 'date smart_date filter_menu-item'}, default: @end_range, include_blank: @end_range ? false : true
-
+ .form-group.search
+ .input-group.search_bar
+ = f.search_field :compliance_control_set_name_cont, class: 'form-control', placeholder: t('compliance_check_sets.filters.name_compliance_control_set')
+ span.input-group-btn
+ button.btn.btn-default type='submit'
+ span.fa.fa-search
.actions
= link_to t('actions.erase'), @compliance_checks_sets, class: 'btn btn-link'
= f.submit t('actions.filter'), class: 'btn btn-default', id: 'compliance_check_set_filter_btn'