Adjust field with submit button.

This commit is contained in:
hassaku 2015-01-07 17:56:03 +09:00
parent 7ba6443594
commit 24811edec4
2 changed files with 9 additions and 3 deletions

View File

@ -165,3 +165,7 @@ label {
color: #999;
}
}
.datetime {
white-space: nowrap;
}

View File

@ -7,8 +7,10 @@
- @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.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|
= f.text_field :content, value: file.note.content, class: "note-content", id: nil
= submit_tag t('terms.save'), class: 'btn btn-default btn-sm pull-right'
.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'