Puts th inside thead, puts tr in tbody

This commit is contained in:
Ryan T. Hosford 2015-01-12 20:50:42 -06:00
parent c021a77d35
commit c8b4136546

View File

@ -1,16 +1,17 @@
%table.table.table-hover.table-bordered
%tbody
%thead
%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.datetime= 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|
.form-group.input-group
= f.text_field :content, value: file.note.content, class: "note-content form-control", id: nil
%span.input-group-btn
= submit_tag t('terms.save'), class: 'btn btn-default'
%tbody
- @backup_files.each do |file|
%tr
%td= link_to(file.name, daemon_setting_history_path(id: file.file_id))
%td.datetime= 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|
.form-group.input-group
= f.text_field :content, value: file.note.content, class: "note-content form-control", id: nil
%span.input-group-btn
= submit_tag t('terms.save'), class: 'btn btn-default'