<%= sequence %> <% 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 %> <%= student.student_name %> <% end %> <%= @student_notes[f.object.student_id] if @student_notes %> <%= f.input :score, label: false, input_html: decimal_input_mask(@number_of_decimal_places), readonly: !f.object.active || f.object.exempted_from_discipline %>