<%= view_table_open %> <%= view_table_head_open %> <%= view_table_row_open %> <%= view_table_head_cell_span 2 %> <%= view_table_head_cell (PersonNote.human_attribute_name(:person_id)) %> <%= view_table_head_cell (link_to(PersonNote.human_attribute_name(:person_note_type_id), person_note_types_path )) %> <%= view_table_head_cell (PersonNote.human_attribute_name(:date_start)) %> <%= view_table_head_cell (PersonNote.human_attribute_name(:date_end)) %> <%= view_table_head_cell (PersonNote.human_attribute_name(:amount)) %> <%= view_table_head_cell (link_to(PersonNote.human_attribute_name(:person_amount_type_id), person_amount_types_path )) %> <%= view_table_head_cell (PersonNote.human_attribute_name(:notes)) %> <%= view_table_row_close %> <%= view_table_head_close %> <%= view_table_body_open %> <% person_notes.each do |person_note| %> <%= view_table_row_open %> <%= view_table_cell ( iconbutton_view person_note, '') %> <%= view_table_cell ( iconbutton_edit edit_person_note_path(person_note), '') %> <%#= view_table_cell ( iconbutton_delete person_note, '') %> <%= view_table_cell ( person_note.person ? link_to( person_note.person.dh_person_name, person_path(person_note.person_id) ) : nil) %> <%= view_table_cell ( person_note.person_note_type_id ? link_to( person_note.person_note_type.descrizione, person_note_type_path(person_note.person_note_type_id) ) : nil) %> <%= view_table_cell ( person_note.date_start.present? ? person_note.date_start.to_dmy : nil) %> <%= view_table_cell ( person_note.date_end.present? ? person_note.date_end.to_dmy : nil) %> <%= view_table_cell_right ( money_format_zero(person_note.amount) ) %> <%= view_table_cell ( person_note.person_amount_type_id ? link_to( person_note.person_amount_type.descrizione, person_amount_type_path(person_note.person_amount_type_id) ) : nil) %> <%= view_table_cell ( person_note.notes) %> <%= view_table_row_close %> <% end %> <%= view_table_body_close %> <%= view_table_close %>