<% content_for :js do %> <%= javascript_include_tag 'beta_function' %> <% end %> <%= simple_form_for @conceptual_exams.first, url: create_or_update_multiple_conceptual_exams_in_batchs_path, method: :put, html: { class: 'smart-form conceptual_exam' } do |f| %> <%= image_tag "beta.png", class: 'hidden', id: 'image-beta' %>
<% first_conceptual_exam = @conceptual_exams.first %>
<%= f.input :unity_id, as: :select2_unity, user: current_user %>
<%= f.input :classroom_id, as: :select2, elements: [first_conceptual_exam.classroom], readonly: true, input_html: { value: first_conceptual_exam.classroom_id }, label: t('lessons_boards.index.classroom') %>
<%= f.input :step_id, as: :select2_step, classroom: first_conceptual_exam.classroom, readonly: true, input_html: { value: first_conceptual_exam.step.id } %>
<%= f.input :recorded_at, input_html: { value: I18n.l(first_conceptual_exam.recorded_at || @recorded_at) }, readonly: true %>
<% if old_values.present? %> <% more_old_values_position ||= old_values.max_by { |old_value| old_value.length }[0] %> <% old_values[more_old_values_position].each do |old_value| %> <% end %> <% end %> <% @conceptual_exam_values.each do |conceptual_exam_value| %> <%= f.simple_fields_for :conceptual_exam_values, conceptual_exam_value do |conceptual_exam_value_form| %> <%= render 'conceptual_exam_value_fields', f: conceptual_exam_value_form, student: conceptual_exam_value.conceptual_exam.student %> <% end %> <% end %> '>
<%= ConceptualExam.human_attribute_name :student_id %> <%= ConceptualExamValue.human_attribute_name :discipline %><%= old_value[:description] %><%= ConceptualExamValue.human_attribute_name :value %>
<%= t('.exempted_students_from_discipline_legend') %>
<%= f.submit t('.save'), class: 'btn new-save-style' %>
<% end %>