|
15 | 15 | </div> |
16 | 16 | </div> |
17 | 17 |
|
18 | | -<%= form_for_filterrific @filterrific, url: case_contacts_path, html: {class: "my-4"}, |
| 18 | +<%= form_for_filterrific @filterrific, url: case_contacts_path, html: {class: "my-4 filter-form"}, remote: true, |
19 | 19 | data: {turbo: true, turbo_frame: :case_contacts, turbo_action: :advance } do |f| %> |
20 | 20 | <%= hidden_field_tag 'casa_case_id', params[:casa_case_id] %> |
21 | 21 |
|
|
38 | 38 | <div class="select-style-1 mb-0"> |
39 | 39 | <%= f.label :sorted_by %> |
40 | 40 | <div class="select-position"> |
41 | | - <%= f.select(:sorted_by, @filterrific.select_options[:sorted_by], {}, {class: ""}) %> |
| 41 | + <%= f.select(:sorted_by, @filterrific.select_options[:sorted_by], {}, {class: "filter-input"}) %> |
42 | 42 | </div> |
43 | 43 | </div> |
44 | 44 | <div class="form-check checkbox-style"> |
45 | | - <%= f.check_box :no_drafts, class: "form-check-input case-contact-contact-type" %> |
| 45 | + <%= f.check_box :no_drafts, class: "form-check-input case-contact-contact-type filter-input" %> |
46 | 46 | <label class="form-check-label" for="filterrific_no_drafts">Hide drafts</label> |
47 | 47 | </div> |
48 | 48 | </div> |
49 | 49 | <div> |
50 | | - <%= button_tag( :class=> "btn-sm main-btn dark-btn") do %> |
51 | | - <i class="lni lni-funnel mr-10"></i> Filter |
52 | | - <% end %> |
53 | 50 | <%= link_to("Reset filters", reset_filterrific_url, |
54 | 51 | class: "btn-sm main-btn dark-btn-outline btn-hove", |
55 | 52 | data: { turbo: true, turbo_frame: :case_contacts, turbo_action: :advance }) %> |
|
65 | 62 | </div> |
66 | 63 | <div class="col-sm-6 input-style-1"> |
67 | 64 | <%= f.label "Starting from", for: "filterrific_occurred_starting_at" %> |
68 | | - <%= f.date_field(:occurred_starting_at, class: "") %> |
| 65 | + <%= f.date_field(:occurred_starting_at, class: "filter-input") %> |
69 | 66 | </div> |
70 | 67 | <div class="col-sm-6 input-style-1"> |
71 | 68 | <%= f.label "Ending at", for: "filterrific_occurred_ending_at" %> |
72 | | - <%= f.date_field(:occurred_ending_at, class: "") %> |
| 69 | + <%= f.date_field(:occurred_ending_at, class: "filter-input") %> |
73 | 70 | </div> |
74 | 71 | </div> |
75 | 72 | <div class="row mb-4"> |
|
84 | 81 | <div class="form-check checkbox-style"> |
85 | 82 | <%= |
86 | 83 | f.check_box :contact_type, |
87 | | - {multiple: true, class: "form-check-input case-contact-contact-type"}, |
| 84 | + {multiple: true, class: "form-check-input case-contact-contact-type filter-input"}, |
88 | 85 | contact_type.id, |
89 | 86 | nil |
90 | 87 | %> |
|
107 | 104 | <%= f.label :contact_medium %> |
108 | 105 | <div class="select-position"> |
109 | 106 | <%= f.select(:contact_medium, options_from_collection_for_select(contact_mediums, "value", "label"), |
110 | | - {include_blank: "Display all"}) %> |
| 107 | + {include_blank: "Display all", class: "filter-input"}) %> |
111 | 108 | </div> |
112 | 109 | </div> |
113 | 110 | <div class="col-md-3 select-style-1 pr-5"> |
114 | 111 | <%= f.label :want_driving_reimbursement %> |
115 | 112 | <div class="select-position"> |
116 | 113 | <%= f.select(:want_driving_reimbursement, @presenter.boolean_select_options, |
117 | | - {include_blank: "Display all"}) %> |
| 114 | + {include_blank: "Display all", class: "filter-input"}) %> |
118 | 115 | </div> |
119 | 116 | </div> |
120 | 117 | <div class="col-md-3 select-style-1 pr-5"> |
121 | 118 | <%= f.label :contact_made %> |
122 | 119 | <div class="select-position"> |
123 | 120 | <%= f.select(:contact_made, @presenter.boolean_select_options, |
124 | | - {include_blank: "Display all"}) %> |
| 121 | + {include_blank: "Display all", class: "filter-input"}) %> |
125 | 122 | </div> |
126 | 123 | </div> |
127 | 124 | </div> |
|
0 commit comments