<% content_for :js do %> <%= javascript_include_tag 'views/learning_objectives_and_skills/form' %> <% end %> <%= simple_form_for @learning_objectives_and_skill, html: { class: "smart-form" } do |f| %> <%= f.error_notification %>
<%= f.input :code %>
<%= f.input :step, as: :select2, elements: BnccSteps.to_select.to_json %>
<%= f.input :grades, as: :select2, elements: @grades, multiple: true, required: true, input_html: { value: f.object.grades.join(','), data: { without_json_parser: true } } %>
<%= f.input :description %>
<% end %>