<%= simple_form_for :search, { url: teaching_plans_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_unity_id, as: :select2, elements: @unities, label: false, placeholder: t('.by_unity_id') %> <%= f.input :by_classroom_id, as: :select2, elements: @classrooms, label: false, placeholder: t('.by_classroom_id') %> <%= f.input :by_discipline_id, as: :select2, elements: @disciplines, label: false, placeholder: t('.by_discipline_id') %> <%= f.input :by_school_term_type_id, as: :select2, elements: SchoolTermType.to_select2(current_user.current_school_year, current_user.current_unity_id).to_json, label: false, placeholder: t('.by_school_term_type') %> <%= f.input :by_school_term_type_step_id, as: :select2, elements: SchoolTermTypeStep.to_select2(current_user.current_school_year, current_user.current_unity_id).to_json, label: false, placeholder: t('.by_school_term_type_step') %> <%= link_to t('.new_html'), new_teaching_plan_path, class: "btn btn-primary pull-right" %>
<%= TeachingPlan.human_attribute_name :year %> <%= Classroom.human_attribute_name :unity %> <%= TeachingPlan.human_attribute_name :classroom %> <%= TeachingPlan.human_attribute_name :discipline %> <%= TeachingPlan.human_attribute_name :school_term_type %> <%= TeachingPlan.human_attribute_name :school_term_type_step %>
<%= paginate @teaching_plans %>
<% end %>