From cfe0dc1ee1563f3fbda430de17353ee9652401d3 Mon Sep 17 00:00:00 2001 From: Sean Collins Date: Wed, 22 Oct 2014 12:44:01 -0400 Subject: [PATCH] change class="fields" to class="field" to be same as rails scaffolding --- app/views/devise/confirmations/new.html.erb | 2 +- app/views/devise/passwords/edit.html.erb | 4 ++-- app/views/devise/passwords/new.html.erb | 2 +- app/views/devise/registrations/edit.html.erb | 8 ++++---- app/views/devise/registrations/new.html.erb | 6 +++--- app/views/devise/sessions/new.html.erb | 6 +++--- app/views/devise/unlocks/new.html.erb | 2 +- 7 files changed, 15 insertions(+), 15 deletions(-) diff --git a/app/views/devise/confirmations/new.html.erb b/app/views/devise/confirmations/new.html.erb index 657afd87..45408119 100644 --- a/app/views/devise/confirmations/new.html.erb +++ b/app/views/devise/confirmations/new.html.erb @@ -3,7 +3,7 @@ <%= form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post }) do |f| %> <%= devise_error_messages! %> -
+
<%= f.label :email %>
<%= f.email_field :email, autofocus: true %>
diff --git a/app/views/devise/passwords/edit.html.erb b/app/views/devise/passwords/edit.html.erb index cfa2ed77..1b2ff26a 100644 --- a/app/views/devise/passwords/edit.html.erb +++ b/app/views/devise/passwords/edit.html.erb @@ -4,12 +4,12 @@ <%= devise_error_messages! %> <%= f.hidden_field :reset_password_token %> -
+
<%= f.label :password, "New password" %>
<%= f.password_field :password, autofocus: true, autocomplete: "off" %>
-
+
<%= f.label :password_confirmation, "Confirm new password" %>
<%= f.password_field :password_confirmation, autocomplete: "off" %>
diff --git a/app/views/devise/passwords/new.html.erb b/app/views/devise/passwords/new.html.erb index a8e1c3f0..3d6d11aa 100644 --- a/app/views/devise/passwords/new.html.erb +++ b/app/views/devise/passwords/new.html.erb @@ -3,7 +3,7 @@ <%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f| %> <%= devise_error_messages! %> -
+
<%= f.label :email %>
<%= f.email_field :email, autofocus: true %>
diff --git a/app/views/devise/registrations/edit.html.erb b/app/views/devise/registrations/edit.html.erb index 87c104b8..3ea40f01 100644 --- a/app/views/devise/registrations/edit.html.erb +++ b/app/views/devise/registrations/edit.html.erb @@ -3,7 +3,7 @@ <%= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f| %> <%= devise_error_messages! %> -
+
<%= f.label :email %>
<%= f.email_field :email, autofocus: true %>
@@ -12,17 +12,17 @@
Currently waiting confirmation for: <%= resource.unconfirmed_email %>
<% end %> -
+
<%= f.label :password %> (leave blank if you don't want to change it)
<%= f.password_field :password, autocomplete: "off" %>
-
+
<%= f.label :password_confirmation %>
<%= f.password_field :password_confirmation, autocomplete: "off" %>
-
+
<%= f.label :current_password %> (we need your current password to confirm your changes)
<%= f.password_field :current_password, autocomplete: "off" %>
diff --git a/app/views/devise/registrations/new.html.erb b/app/views/devise/registrations/new.html.erb index 70eb6ef8..343b2656 100644 --- a/app/views/devise/registrations/new.html.erb +++ b/app/views/devise/registrations/new.html.erb @@ -3,12 +3,12 @@ <%= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %> <%= devise_error_messages! %> -
+
<%= f.label :email %>
<%= f.email_field :email, autofocus: true %>
-
+
<%= f.label :password %> <% if @validatable %> (<%= @minimum_password_length %> characters minimum) @@ -16,7 +16,7 @@ <%= f.password_field :password, autocomplete: "off" %>
-
+
<%= f.label :password_confirmation %>
<%= f.password_field :password_confirmation, autocomplete: "off" %>
diff --git a/app/views/devise/sessions/new.html.erb b/app/views/devise/sessions/new.html.erb index 4df8ebab..b261cfd1 100644 --- a/app/views/devise/sessions/new.html.erb +++ b/app/views/devise/sessions/new.html.erb @@ -1,18 +1,18 @@

Log in

<%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %> -
+
<%= f.label :email %>
<%= f.email_field :email, autofocus: true %>
-
+
<%= f.label :password %>
<%= f.password_field :password, autocomplete: "off" %>
<% if devise_mapping.rememberable? -%> -
+
<%= f.check_box :remember_me %> <%= f.label :remember_me %>
diff --git a/app/views/devise/unlocks/new.html.erb b/app/views/devise/unlocks/new.html.erb index 50e81c08..16586bc7 100644 --- a/app/views/devise/unlocks/new.html.erb +++ b/app/views/devise/unlocks/new.html.erb @@ -3,7 +3,7 @@ <%= form_for(resource, as: resource_name, url: unlock_path(resource_name), html: { method: :post }) do |f| %> <%= devise_error_messages! %> -
+
<%= f.label :email %>
<%= f.email_field :email, autofocus: true %>