aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/compliance_check_sets
diff options
context:
space:
mode:
authorGuillaume2017-11-17 17:02:54 +0100
committerGuillaume2017-11-17 17:02:54 +0100
commit6676460eedb0d45938f67e2f8fe760a8e7001623 (patch)
tree13a05f00f44994733170b60fa2c2f335e934d288 /app/views/compliance_check_sets
parent1261698d213964a3391fe1880198da00e7ac9831 (diff)
downloadchouette-core-6676460eedb0d45938f67e2f8fe760a8e7001623.tar.bz2
Refs #4986 Add new filer by compliance control set name, add new styles for display input search inside a form-group filter layout4986-compliance_control_sets_fix
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'