<%= simple_form_for :filter, { url: complementary_exam_settings_path, method: :get, html: { class: 'filterable_search_form' } } do |f| %>
<%= render 'resources' %>
<%= f.input :by_year, label: false, placeholder: t('.by_year') %> <%= f.input :by_description, label: false, placeholder: t('.by_description') %> <%= f.input :by_initials, label: false, placeholder: t('.by_initials') %> <%= f.input :by_calculation_type, as: :select2, elements: CalculationTypes.to_select.to_json, label: false, placeholder: t('.by_calculation_type') %> <%= f.input :by_affected_score, as: :select2, elements: AffectedScoreTypes.to_select.to_json, label: false, placeholder: t('.by_affected_score') %> <%= f.input :by_grade_id, as: :select2, elements: grades, label: false, placeholder: t('.by_grade_id') %> <%= link_to t('.new_html'), new_complementary_exam_setting_path, class: "btn btn-primary" %>
<%= ComplementaryExamSetting.human_attribute_name :year %> <%= ComplementaryExamSetting.human_attribute_name :description %> <%= ComplementaryExamSetting.human_attribute_name :initials %> <%= ComplementaryExamSetting.human_attribute_name :calculation_type %> <%= ComplementaryExamSetting.human_attribute_name :affected_score %> <%= ComplementaryExamSetting.human_attribute_name :grades %>
<%= paginate @complementary_exam_settings %>
<% end %>