<% content_for :js do %> <%= javascript_include_tag 'views/conceptual_exams/form' %> <% end %> <%= simple_form_for @conceptual_exam, html: { class: 'smart-form' } do |f| %> <%= f.error_notification %> <%= render 'base_errors', f: f %>
<%= f.input :unity_id, as: :select2_unity, user: current_user %>
<% if current_user.current_role_is_admin_or_employee? %> <%= f.association :classroom, as: :select2_classroom, user: current_user, record: f.object %> <% else %> <%= f.association :classroom, as: :select2, elements: @classrooms, user: current_user, record: f.object, readonly: action_name.eql?("edit") %> <% end %>
<%= f.input :step_id, as: :select2_step, classroom: current_user_classroom, readonly: @conceptual_exam.persisted?, required: true %>
<%= f.input :recorded_at %>
<%= f.association :student, as: :select2, elements: @students, readonly: @conceptual_exam.persisted? %>
<% old_values.each do |step| %> <% end %> <% ordered_conceptual_exam_values.each do |knowledge_area, conceptual_exam_values| %> <% if conceptual_exam_values.reject(&:marked_for_destruction?).reject(&:marked_as_invisible?).any? %> <% end %> <%= f.simple_fields_for :conceptual_exam_values, conceptual_exam_values do |conceptual_exam_value_form| %> <%= render 'conceptual_exam_value_fields', f: conceptual_exam_value_form %> <% end %> <% end %> '>
<%= ConceptualExamValue.human_attribute_name :discipline %><%= step[:description] %><%= ConceptualExamValue.human_attribute_name :value %>
<%= t('.no_item_found') %>
<%= knowledge_area %>
<%= t('.exempted_students_from_discipline_legend') %>
<% end %>