Add devise defaults

This commit is contained in:
2015-02-25 14:44:28 +01:00
parent fd9afb9d53
commit c2435695bf
27 changed files with 266 additions and 225 deletions
@@ -2,7 +2,7 @@
<p>Someone has requested a link to change your password, and you can do this through the link below.</p>
<p><%= link_to 'Change my password', edit_password_url(@resource, :reset_password_token => @resource.reset_password_token) %></p>
<p><%= link_to 'Change my password', edit_password_url(@resource, reset_password_token: @token) %></p>
<p>If you didn't request this, please ignore this email.</p>
<p>Your password won't change until you access the link above and create a new one.</p>
@@ -0,0 +1,12 @@
h2= t('devise.passwords.edit.title')
= 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
= f.row :password
.form-label= f.label :password
.form-field= f.password_field :password
= f.row :password_confirmation
.form-label= f.label :password_confirmation
.form-field= f.password_field :password_confirmation
.form-row= f.submit t('devise.passwords.edit.button'), class: 'button'
= render "devise/links"
@@ -0,0 +1,8 @@
h2= t('devise.passwords.title')
= form_for(resource, :as => resource_name, :url => password_path(resource_name)) do |f|
= devise_error_messages!
= f.row :email do
.form-label= f.label :email, class: 'control-label'
.form-field= f.email_field :email
.form-row.form-actions= f.submit t('devise.passwords.button'), class: 'button'
= render "devise/links"