<% record_class = (f.object.new_record? ? 'dynamic' : 'existing') %>
<% record_style = (f.object.marked_for_destruction? || f.object.marked_as_invisible? ? 'display: none;' : '') %>

<tr class='nested-fields <%= record_class %>'  style='<%= record_style %>'>
  <td>
    <%= f.hidden_field :id %>
    <%= f.hidden_field :discipline_id %>
    <%= f.hidden_field :exempted_discipline %>
    <%= f.hidden_field :_destroy %>
    <span class='<%= conceptual_exam_value_student_name_class(f.object) %>'>
      <%= conceptual_exam_value_student_name(f.object) %>
    </span>
  </td>
  <% old_values.each do |step| %>
    <td class="old_step_column"><%= step[:values]["#{f.object.discipline_id}"] || '-' %></td>
  <% end %>
  <td>
    <% if @conceptual_exam.student.present? %>
      <%= f.input :value, as: :select2,
            elements: f.object.decorator.data_for_select2,
            label_html: { class: 'hidden' },
            readonly: (f.object.exempted_discipline.to_s == 'true') || action_name == "show" %>
    <% end %>
  </td>
</tr>
