%table.table.table-hover.table-bordered
  %tbody
    %tr
      %th= t('terms.backup_file')
      %th= t('terms.backup_time')
      %th= t('terms.note')
  - @backup_files.each do |file|
    %tr
      %td= link_to(file.name, daemon_setting_history_path(id: file.file_id))
      %td= file.ctime.strftime t('time.formats.default')
      %td
        = form_for :note, url: daemon_setting_note_path(id: file.note.file_id), method: :patch do |f|
          = f.text_field :content, value: file.note.content
          = submit_tag t('terms.save'), class: 'btn'

%table.table.table-hover.table-bordered
  %tbody
    %tr
      %th= t('terms.backup_file')
      %th= t('terms.backup_time')
      %th= t('terms.note')
  - @backup_files.each do |file|
    %tr
      %td= link_to(file.name, daemon_setting_history_path(id: file.file_id))
      %td= file.ctime.strftime t('time.formats.default')
      %td
        = form_for :note, url: daemon_setting_note_path(id: file.note.file_id), method: :patch do |f|
          = f.text_field :content, value: file.note.content, class: "note-content", id: nil
          = submit_tag t('terms.save'), class: 'btn'

Add css class instead of id due to multiple forms.
Add css class instead of id due to multiple forms.
