<%= simple_form_for :filter, { url: infrequency_trackings_path, method: :get, html: { class: 'filterable_search_form' } } do |f| %>
<%= render 'resources' %>
<%= f.input :by_unity_id, as: :select2, elements: unities, label: false, placeholder: t('.by_unity_id') %> <%= f.input :by_grade_id, as: :select2, elements: grades, label: false, placeholder: t('.by_grade_id') %> <%= f.input :by_classroom_id, as: :select2, elements: classrooms, label: false, placeholder: t('.by_classroom_id') %> <%= f.input :by_student_id, as: :select2, elements: students, label: false, placeholder: t('.by_student_id') %> <%= f.input :by_notification_date, as: :date, label: false, placeholder: t('.by_notification_date') %> <%= f.input :by_notification_type, as: :select2, label: false, elements: InfrequencyTrackingDecorator.data_for_select2, placeholder: t('.by_notification_type') %>
<%= InfrequencyTracking.human_attribute_name :unity %> <%= InfrequencyTracking.human_attribute_name :grade %> <%= InfrequencyTracking.human_attribute_name :classroom %> <%= InfrequencyTracking.human_attribute_name :student %> <%= InfrequencyTracking.human_attribute_name :notification_date %> <%= InfrequencyTracking.human_attribute_name :notification_type %>
<%= render 'shared/pagination', records: @infrequency_trackings %>
<% end %>