From ab4abb00d0a8b1fdee6bf1cf635c856f49f0707c Mon Sep 17 00:00:00 2001 From: Luc Donnet Date: Mon, 17 Nov 2014 13:29:45 +0100 Subject: Update new password design page --- app/assets/stylesheets/modules/devise.css.scss | 6 ++++++ app/views/devise/passwords/new.html.erb | 20 ++++++++++++-------- 2 files changed, 18 insertions(+), 8 deletions(-) (limited to 'app') diff --git a/app/assets/stylesheets/modules/devise.css.scss b/app/assets/stylesheets/modules/devise.css.scss index 8236366ce..2b6c67a5e 100644 --- a/app/assets/stylesheets/modules/devise.css.scss +++ b/app/assets/stylesheets/modules/devise.css.scss @@ -1,6 +1,12 @@ #devise{ background-color: $gray-light; + .passwords.new{ + imput{ + width: initial !important; + } + } + .front_bg{ background: url(image-path('welcome.jpg')) no-repeat center center; background-size: cover; diff --git a/app/views/devise/passwords/new.html.erb b/app/views/devise/passwords/new.html.erb index 68fd8c22a..865805319 100644 --- a/app/views/devise/passwords/new.html.erb +++ b/app/views/devise/passwords/new.html.erb @@ -1,12 +1,16 @@ -
-
<%= t('.title') %>
-
- <%= simple_form_for(resource, :as => resource_name, :url => password_path(resource_name)) do |form| %> - <%= form.input :email %> +
+
+
<%= t('.title') %>
+
+ <%= simple_form_for(resource, :as => resource_name, :url => password_path(resource_name)) do |form| %> + <%= form.input :email, :as => :email, placeholder: 'user@domain.com' %> - <%= link_to t("cancel"), root_path, :class => "btn btn-default" %> - <%= form.button :submit, :value => t("devise.passwords.new.commit") %> - <% end %> +
+ <%= link_to t("cancel"), root_path, :class => "btn btn-default" %> + <%= form.button :submit, :value => t("devise.passwords.new.commit"), :class => "btn-info" %> +
+ <% end %> +
-- cgit v1.2.3