Skip to content

Commit

Permalink
Merge pull request heartcombo#1198 from andriytyurnikov/issue_1197
Browse files Browse the repository at this point in the history
div instead of p in forms
  • Loading branch information
josevalim committed Jul 14, 2011
2 parents e9c7662 + 502dae3 commit 0a04d73
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 36 deletions.
6 changes: 3 additions & 3 deletions app/views/devise/confirmations/new.html.erb
Expand Up @@ -3,10 +3,10 @@
<%= form_for(resource, :as => resource_name, :url => confirmation_path(resource_name), :html => { :method => :post }) do |f| %>
<%= devise_error_messages! %>

<p><%= f.label :email %><br />
<%= f.email_field :email %></p>
<div><%= f.label :email %><br />
<%= f.email_field :email %></div>

<p><%= f.submit "Resend confirmation instructions" %></p>
<div><%= f.submit "Resend confirmation instructions" %></div>
<% end %>
<%= render :partial => "devise/shared/links" %>
10 changes: 5 additions & 5 deletions app/views/devise/passwords/edit.html.erb
Expand Up @@ -4,13 +4,13 @@
<%= devise_error_messages! %>
<%= f.hidden_field :reset_password_token %>

<p><%= f.label :password, "New password" %><br />
<%= f.password_field :password %></p>
<div><%= f.label :password, "New password" %><br />
<%= f.password_field :password %></div>

<p><%= f.label :password_confirmation, "Confirm new password" %><br />
<%= f.password_field :password_confirmation %></p>
<div><%= f.label :password_confirmation, "Confirm new password" %><br />
<%= f.password_field :password_confirmation %></div>

<p><%= f.submit "Change my password" %></p>
<div><%= f.submit "Change my password" %></div>
<% end %>
<%= render :partial => "devise/shared/links" %>
6 changes: 3 additions & 3 deletions app/views/devise/passwords/new.html.erb
Expand Up @@ -3,10 +3,10 @@
<%= form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :post }) do |f| %>
<%= devise_error_messages! %>

<p><%= f.label :email %><br />
<%= f.email_field :email %></p>
<div><%= f.label :email %><br />
<%= f.email_field :email %></div>

<p><%= f.submit "Send me reset password instructions" %></p>
<div><%= f.submit "Send me reset password instructions" %></div>
<% end %>
<%= render :partial => "devise/shared/links" %>
18 changes: 9 additions & 9 deletions app/views/devise/registrations/edit.html.erb
Expand Up @@ -3,19 +3,19 @@
<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put }) do |f| %>
<%= devise_error_messages! %>

<p><%= f.label :email %><br />
<%= f.email_field :email %></p>
<div><%= f.label :email %><br />
<%= f.email_field :email %></div>

<p><%= f.label :password %> <i>(leave blank if you don't want to change it)</i><br />
<%= f.password_field :password %></p>
<div><%= f.label :password %> <i>(leave blank if you don't want to change it)</i><br />
<%= f.password_field :password %></div>

<p><%= f.label :password_confirmation %><br />
<%= f.password_field :password_confirmation %></p>
<div><%= f.label :password_confirmation %><br />
<%= f.password_field :password_confirmation %></div>

<p><%= f.label :current_password %> <i>(we need your current password to confirm your changes)</i><br />
<%= f.password_field :current_password %></p>
<div><%= f.label :current_password %> <i>(we need your current password to confirm your changes)</i><br />
<%= f.password_field :current_password %></div>

<p><%= f.submit "Update" %></p>
<div><%= f.submit "Update" %></div>
<% end %>

<h3>Cancel my account</h3>
Expand Down
14 changes: 7 additions & 7 deletions app/views/devise/registrations/new.html.erb
Expand Up @@ -3,16 +3,16 @@
<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f| %>
<%= devise_error_messages! %>

<p><%= f.label :email %><br />
<%= f.email_field :email %></p>
<div><%= f.label :email %><br />
<%= f.email_field :email %></div>

<p><%= f.label :password %><br />
<%= f.password_field :password %></p>
<div><%= f.label :password %><br />
<%= f.password_field :password %></div>

<p><%= f.label :password_confirmation %><br />
<%= f.password_field :password_confirmation %></p>
<div><%= f.label :password_confirmation %><br />
<%= f.password_field :password_confirmation %></div>

<p><%= f.submit "Sign up" %></p>
<div><%= f.submit "Sign up" %></div>
<% end %>
<%= render :partial => "devise/shared/links" %>
12 changes: 6 additions & 6 deletions app/views/devise/sessions/new.html.erb
@@ -1,17 +1,17 @@
<h2>Sign in</h2>

<%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %>
<p><%= f.label :email %><br />
<%= f.email_field :email %></p>
<div><%= f.label :email %><br />
<%= f.email_field :email %></div>

<p><%= f.label :password %><br />
<%= f.password_field :password %></p>
<div><%= f.label :password %><br />
<%= f.password_field :password %></div>

<% if devise_mapping.rememberable? -%>
<p><%= f.check_box :remember_me %> <%= f.label :remember_me %></p>
<div><%= f.check_box :remember_me %> <%= f.label :remember_me %></div>
<% end -%>

<p><%= f.submit "Sign in" %></p>
<div><%= f.submit "Sign in" %></div>
<% end %>
<%= render :partial => "devise/shared/links" %>
6 changes: 3 additions & 3 deletions app/views/devise/unlocks/new.html.erb
Expand Up @@ -3,10 +3,10 @@
<%= form_for(resource, :as => resource_name, :url => unlock_path(resource_name), :html => { :method => :post }) do |f| %>
<%= devise_error_messages! %>

<p><%= f.label :email %><br />
<%= f.email_field :email %></p>
<div><%= f.label :email %><br />
<%= f.email_field :email %></div>

<p><%= f.submit "Resend unlock instructions" %></p>
<div><%= f.submit "Resend unlock instructions" %></div>
<% end %>
<%= render :partial => "devise/shared/links" %>

0 comments on commit 0a04d73

Please sign in to comment.