<%= f.input :name, input_html: { maxlength: 255 } %>
<%= f.input :year, input_html: { maxlength: 4 } %>
<%= f.association :unities, as: :select2, elements: @unities, multiple: true,
input_html: { value: f.object.unity_ids.join(','), data: { without_json_parser: true } } %>
<%= f.association :courses, as: :select2, elements: @courses, multiple: true,
input_html: { value: f.object.course_ids.join(','), data: { without_json_parser: true } } %>
<%= f.association :grades, as: :select2, elements: @filtered_grades, multiple: true,
input_html: { value: f.object.grade_ids.join(','), data: { without_json_parser: true } } %>
<%= f.input :rounded_avaliations, as: :select2, elements: @rounded_avaliations, multiple: true,
input_html: { value: f.object.rounded_avaliations.join(','), data: { without_json_parser: true } } %>