changed a few Devise views

This commit is contained in:
nilsding 2015-01-01 17:50:25 +01:00
parent d3b9b4640d
commit 77b92b0b23
5 changed files with 12 additions and 7 deletions

View File

@ -3,7 +3,7 @@
= bootstrap_form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post }) do |f|
= devise_error_messages!
= f.email_field :screen_name, autofocus: true, label: "User name"
= f.text_field :screen_name, autofocus: true, label: "User name"
= f.submit "Resend confirmation instructions"
= render "devise/shared/links"

View File

@ -1,3 +1,8 @@
%p Welcome #{@screen_name}!
%p
Welcome to
= succeed ',' do
= APP_CONFIG['site_name']
= succeed '!' do
= @resource.screen_name
%p You can confirm your account email through the link below:
%p= link_to 'Confirm my account', confirmation_url(@resource, confirmation_token: @token)

View File

@ -1,5 +1,5 @@
%p Hello #{@resource.email}!
%p Someone has requested a link to change your password. You can do this through the link below.
%p Hello #{@resource.screen_name}!
%p Someone (hopefully you) has requested a link to change your password. You can do this through the link below.
%p= link_to 'Change my password', edit_password_url(@resource, reset_password_token: @token)
%p If you didn't request this, please ignore this email.
%p Your password won't change until you access the link above and create a new one.

View File

@ -1,4 +1,4 @@
%p Hello #{@resource.email}!
%p Hello #{@resource.screen_name}!
%p Your account has been locked due to an excessive number of unsuccessful sign in attempts.
%p Click the link below to unlock your account:
%p= link_to 'Unlock my account', unlock_url(@resource, unlock_token: @token)

View File

@ -3,8 +3,8 @@
= bootstrap_form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f|
= devise_error_messages!
= f.text_field :screen_name, autofocus: true, "User name"
= f.submit "Send me reset password instructions"
= f.text_field :screen_name, autofocus: true, label: "User name"
= f.submit "Send me password reset instructions"
= render "devise/shared/links"
= render "shared/links"