Use table for form fields in views
This commit is contained in:
parent
1057cab009
commit
acaa9fc19a
@ -1,4 +1,9 @@
|
||||
= form_for @playlist do |f|
|
||||
= f.label :name
|
||||
= f.text_field :name
|
||||
= f.submit submit_text
|
||||
%table
|
||||
%tbody
|
||||
%tr
|
||||
%th= f.label :name
|
||||
%td= f.text_field :name
|
||||
%tfoot
|
||||
%tr
|
||||
%td= f.submit submit_text
|
||||
|
@ -1,7 +1,14 @@
|
||||
= form_for(:session, :url => sessions_path) do |f|
|
||||
= f.label :email
|
||||
= f.text_field :email
|
||||
= f.label :password
|
||||
= f.password_field :password
|
||||
= f.submit 'Sign in'
|
||||
%table
|
||||
%tbody
|
||||
%tr
|
||||
%th= f.label :email
|
||||
%td= f.text_field :email
|
||||
%tr
|
||||
%th= f.label :password
|
||||
%td= f.password_field :password
|
||||
%tfoot
|
||||
%tr
|
||||
%td= f.submit 'Sign in'
|
||||
|
||||
= link_to 'Sign up', new_user_path
|
||||
|
@ -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'
|
||||
|
@ -1,8 +1,15 @@
|
||||
= form_for(@user, :url => users_path) do |f|
|
||||
= f.label :email
|
||||
= f.text_field :email
|
||||
= f.label :password
|
||||
= f.password_field :password
|
||||
= f.label :password_confirmation
|
||||
= f.password_field :password_confirmation
|
||||
= f.submit 'Sign up'
|
||||
%table
|
||||
%tbody
|
||||
%tr
|
||||
%th= f.label :email
|
||||
%td= f.text_field :email
|
||||
%tr
|
||||
%th= f.label :password
|
||||
%td= f.password_field :password
|
||||
%tr
|
||||
%th= f.label :password_confirmation
|
||||
%td= f.password_field :password_confirmation
|
||||
%tfoot
|
||||
%tr
|
||||
%td= f.submit 'Sign up'
|
||||
|
Loading…
x
Reference in New Issue
Block a user