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,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