Merge pull request #2994 from diasp/improve-reset-password
Improve reset password views
This commit is contained in:
commit
da6866c04c
2 changed files with 22 additions and 19 deletions
|
|
@ -1,15 +1,18 @@
|
|||
%h2 Change your password
|
||||
= form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :put }) do |f|
|
||||
= devise_error_messages!
|
||||
= f.hidden_field :reset_password_token
|
||||
%p
|
||||
= f.label :password
|
||||
%br/
|
||||
= f.password_field :password
|
||||
%p
|
||||
= f.label :password_confirmation
|
||||
%br/
|
||||
= f.password_field :password_confirmation
|
||||
%p
|
||||
= f.submit t('.change_password')
|
||||
= render :partial => "devise/shared/links"
|
||||
.span-12.prepend-6.last
|
||||
.floating
|
||||
%h2
|
||||
= t('.change_password')
|
||||
= form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :put }) do |f|
|
||||
= devise_error_messages!
|
||||
= f.hidden_field :reset_password_token
|
||||
%p
|
||||
= f.label :password, t('password')
|
||||
%br/
|
||||
= f.password_field :password
|
||||
%p
|
||||
= f.label :password_confirmation, t('password_confirmation')
|
||||
%br/
|
||||
= f.password_field :password_confirmation
|
||||
%p
|
||||
= f.submit t('.change_password')
|
||||
= render :partial => "devise/shared/links"
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
.span-12.prepend-6.last
|
||||
.floating
|
||||
%h3
|
||||
=t('.forgot_password')
|
||||
%h2
|
||||
= t('.forgot_password')
|
||||
- unless devise_error_messages!.empty?
|
||||
%i= t('.no_account')
|
||||
%i= t('.no_account')
|
||||
|
||||
= form_for(resource, :as => resource_name, :url => password_path(resource_name)) do |f|
|
||||
%p
|
||||
= f.label :email
|
||||
= f.label :email, t('email')
|
||||
= f.text_field :email
|
||||
%p
|
||||
= f.submit t('.send_password_instructions')
|
||||
|
|
|
|||
Loading…
Reference in a new issue