<tr class="nested-fields"
    style="<%= 'display: none;' if f.object.marked_for_destruction? %>"
    id="<%= f.object.student_id %>">
  <td>
    <%= sequence %>
  </td>
  <td>
    <% if f.object.persisted? %>
      <%= f.hidden_field :id %>
      <%= f.hidden_field :active %>
      <%= f.hidden_field :_destroy %>
    <% end %>

    <% present(f.object) do |student| %>
      <%= f.input :student_id, as: :hidden %>
      <span class="<%= student.student_name_class %>"><%= student.student_name %></span>
    <% end %>
  </td>

  <td>
    <%= @student_notes[f.object.student_id] if @student_notes %>
  </td>

  <td>
    <%= f.input :score, label: false,
        input_html: decimal_input_mask(@number_of_decimal_places),
        readonly: !f.object.active || f.object.exempted_from_discipline %>
  </td>
</tr>
