>
<% present(f.object) do |student| %>
|
<%= f.hidden_field :id %>
<%= f.hidden_field :active %>
<%= f.hidden_field :_destroy, value: (student.exempted_from_discipline ? true : nil) %>
|
<%= f.input :student_id, as: :hidden %>
class="<%= student.student_name_class %>"><%= student.student_name %>
|
<%= do_undo_link(student, @daily_note) %>
<%= f.input(
:note,
label_html: { class: 'hidden', style: 'width: 100%;' },
input_html: {
class: ('exempted-student' if student.exempted),
data: {
inputmask: "'digits': #{student.number_of_decimal_places}"
}
},
readonly: student.exempted || !student.active || student.exempted_from_discipline || student.in_active_search,
placeholder: ('Dispensado' if student.exempted && !student.in_active_search)
) %>
|
<% end %>