%= form_with(model: person_note, local: true) do |form| %> <%= render partial: "shared/show_errors", locals: {record: person_note} %> <%= edit_table_open %> <%= edit_table_row (PersonNote.human_attribute_name(:person_id)),(form.collection_select :person_id, Person.all.ordered_by_name, :id, :format_for_formselect, include_blank: false) %> <%= edit_table_row (PersonNote.human_attribute_name(:person_note_type_id)),(form.collection_select :person_note_type_id, PersonNoteType.all.ordered_by_name, :id, :format_for_formselect, include_blank: false) %> <%= edit_table_row (PersonNote.human_attribute_name(:notes)),(form.text_area :notes, cols: 60, rows: 10, id: :person_note_notes) %> <%= edit_table_row (PersonNote.human_attribute_name(:date_start)), (date_input form, person_note, :date_start, :person_note_date_start) %> <%= edit_table_row (PersonNote.human_attribute_name(:date_end)), (date_input form, person_note, :date_end, :person_note_date_end) %> <%= edit_table_row (PersonNote.human_attribute_name(:amount)),(form.number_field :amount, id: :person_note_importo, step: :any, style: 'text-align: right;') %> <%= edit_table_row (PersonNote.human_attribute_name(:person_amount_type_id)),(form.collection_select :person_amount_type_id, PersonAmountType.all.ordered_by_name, :id, :format_for_formselect, include_blank: false) %> <%= edit_table_close %>