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

    <%= f.input :student_id, as: :hidden %>
    <span class="multiline"><%= f.object %></span>
  </td>

  <td>
    <%= f.input :score, label: false %>
  </td>
</tr>
