<%= simple_form_for :filter, {url: learning_objectives_and_skills_path, method: :get, html: {class: 'filterable_search_form'}} do |f| %> <%= render 'resources' %>
<%= f.input :by_code, label: false, placeholder: "Código" %> <%= f.input :by_description, label: false, placeholder: "Filtrar objetivo/habilidade" %> <%= f.input :by_step, as: :select2, label: false, placeholder: "Filtrar etapa", elements: BnccSteps.to_select.to_json %> <%= f.input :by_grade, as: :select2, label: false, placeholder: "Filtrar série", elements: @grades.to_json %>
<%= LearningObjectivesAndSkill.human_attribute_name :code %> <%= LearningObjectivesAndSkill.human_attribute_name :description %> <%= LearningObjectivesAndSkill.human_attribute_name :step %> <%= LearningObjectivesAndSkill.human_attribute_name :grades %> <% if policy(LearningObjectivesAndSkill).new? %> <%= link_to t('.new_html'), new_learning_objectives_and_skill_path, class: "btn btn-primary" %> <% end %>
<%= paginate @learning_objectives_and_skills %>
<% end %>