From 61dba93d757c995829807f00e93552e774becc43 Mon Sep 17 00:00:00 2001 From: Rafael Reggiani Manzo Date: Mon, 13 Apr 2015 16:55:17 -0300 Subject: [PATCH] Restored devise views style --- app/views/devise/passwords/new.html.erb | 28 ++++++++++++++++++++++------ app/views/devise/registrations/edit.html.erb | 87 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----------------- app/views/devise/registrations/new.html.erb | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++++++---------- app/views/devise/sessions/new.html.erb | 56 +++++++++++++++++++++++++++++++++++++++++++++----------- app/views/devise/shared/_links.erb | 16 ++++++++-------- 5 files changed, 200 insertions(+), 52 deletions(-) diff --git a/app/views/devise/passwords/new.html.erb b/app/views/devise/passwords/new.html.erb index 689791a..0b6692c 100644 --- a/app/views/devise/passwords/new.html.erb +++ b/app/views/devise/passwords/new.html.erb @@ -1,12 +1,28 @@ -

<%= t('.forgot_your_password', :default => 'Forgot your password?') %>

+ <%= 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 %>
+
+
+
+
+ <%= f.label :email, class: "control-label" %> + <%= f.email_field :email, autofocus: true, class: 'text-field form-control' %> +
+
+

+ The same email address used to sign up. +

+
+
+
+
-
<%= f.submit t('.send_me_reset_password_instructions', :default => "Send me reset password instructions") %>
+
+ <%= f.submit t('.send_me_reset_password_instructions', :default => "Send me reset password instructions"), class: 'btn btn-warning' %> + <%= render "devise/shared/links" %> +
<% end %> - -<%= render "devise/shared/links" %> diff --git a/app/views/devise/registrations/edit.html.erb b/app/views/devise/registrations/edit.html.erb index 144a874..08cb0d9 100644 --- a/app/views/devise/registrations/edit.html.erb +++ b/app/views/devise/registrations/edit.html.erb @@ -1,30 +1,83 @@ -

<%= t('.title', :resource => resource_class.model_name.human , :default => "Edit #{resource_name.to_s.humanize}") %>

+