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