From b60df0c35ab0589ac385131bcee2213e2023be12 Mon Sep 17 00:00:00 2001 From: Pedro Scocco Date: Thu, 16 Apr 2015 14:42:48 -0300 Subject: [PATCH] Fixed some styles after devise internationalization --- app/views/devise/confirmations/new.html.erb | 2 +- app/views/devise/passwords/edit.html.erb | 4 ++-- app/views/devise/registrations/edit.html.erb | 3 ++- app/views/devise/sessions/new.html.erb | 2 +- app/views/devise/shared/_links.erb | 2 +- app/views/devise/unlocks/new.html.erb | 8 +++++--- 6 files changed, 12 insertions(+), 9 deletions(-) diff --git a/app/views/devise/confirmations/new.html.erb b/app/views/devise/confirmations/new.html.erb index 82617b1..3190441 100644 --- a/app/views/devise/confirmations/new.html.erb +++ b/app/views/devise/confirmations/new.html.erb @@ -6,7 +6,7 @@ <%= devise_error_messages! %>
<%= f.label :email %>
- <%= f.email_field :emaill, :autofocus => true %>
+ <%= f.email_field :email, :autofocus => true %>
<%= f.submit t('.resend_confirmation_instructions', :default => 'Resend confirmation instructions'), class: 'btn btn-default' %>
<% end %> diff --git a/app/views/devise/passwords/edit.html.erb b/app/views/devise/passwords/edit.html.erb index f1a7d98..e7bc0db 100644 --- a/app/views/devise/passwords/edit.html.erb +++ b/app/views/devise/passwords/edit.html.erb @@ -7,12 +7,12 @@ <%= f.hidden_field :reset_password_token %>
<%= f.label :password, t('.new_password', :default => 'New password') %>
- <%= f.password_field :password %>
+ <%= f.password_field :password, :autofocus => true %>
<%= f.label :password_confirmation, t('.confirm_new_password', :default => 'Confirm new password') %>
<%= f.password_field :password_confirmation %>
-
<%= f.submit t('.change_my_password', :default => 'Change my password') %>
+
<%= f.submit t('.change_my_password', :default => 'Change my password'), class: 'btn btn-warning' %>
<% end %> <%= render "devise/shared/links" %> diff --git a/app/views/devise/registrations/edit.html.erb b/app/views/devise/registrations/edit.html.erb index b3697c5..92e774e 100644 --- a/app/views/devise/registrations/edit.html.erb +++ b/app/views/devise/registrations/edit.html.erb @@ -1,6 +1,6 @@ <%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put, :class => "form-inline" }) do |f| %> <%= devise_error_messages! %> @@ -77,6 +77,7 @@ <% end %> +

<%= t('.cancel_my_account', :default => 'Cancel my account') %>

<%= t('.unhappy', :default => 'Unhappy') %>? <%= link_to t('.cancel_my_account', :default => "Cancel my account"), registration_path(resource_name), :data => { :confirm => t('.are_you_sure', :default => "Are you sure?") }, :method => :delete, class: 'btn btn-warning' %>.

diff --git a/app/views/devise/sessions/new.html.erb b/app/views/devise/sessions/new.html.erb index 9589646..587b4af 100644 --- a/app/views/devise/sessions/new.html.erb +++ b/app/views/devise/sessions/new.html.erb @@ -33,7 +33,7 @@
diff --git a/app/views/devise/shared/_links.erb b/app/views/devise/shared/_links.erb index 6a1e05d..e243d98 100644 --- a/app/views/devise/shared/_links.erb +++ b/app/views/devise/shared/_links.erb @@ -7,7 +7,7 @@ <% end -%> <%- if devise_mapping.confirmable? && controller_name != 'confirmations' %> diff --git a/app/views/devise/unlocks/new.html.erb b/app/views/devise/unlocks/new.html.erb index 55edb1f..25b6abc 100644 --- a/app/views/devise/unlocks/new.html.erb +++ b/app/views/devise/unlocks/new.html.erb @@ -1,10 +1,12 @@ -

<%= t('.resend_unlock_instructions', :default => "Resend unlock instructions") %>

- + + <%= 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 %>
+ <%= f.email_field :email, :autofocus => true %>
<%= f.submit t('.resend_unlock_instructions', :default => "Resend unlock instructions"), class: 'btn btn-primary' %>
<% end %> -- libgit2 0.21.2