Use table for form fields in views

This commit is contained in:
Thibault Jouan
2011-09-07 21:13:20 +00:00
parent 1057cab009
commit acaa9fc19a
4 changed files with 45 additions and 20 deletions

View File

@@ -1,6 +1,12 @@
= form_for @track, :html => { :multipart => true } do |t|
= t.label :name
= t.text_field :name
= t.label :file
= t.file_field :file
= t.submit 'Upload'
%table
%tbody
%tr
%th= t.label :name
%td= t.text_field :name
%tr
%th= t.label :file
%td= t.file_field :file
%tfoot
%tr
%td= t.submit 'Upload'