Merge pull request #408 from AyuntamientoMadrid/registration-success-390
Adds registration "success" intermediate page
This commit is contained in:
@@ -10,6 +10,9 @@ class Users::RegistrationsController < Devise::RegistrationsController
|
||||
end
|
||||
end
|
||||
|
||||
def success
|
||||
end
|
||||
|
||||
def finish_signup
|
||||
end
|
||||
|
||||
@@ -30,7 +33,7 @@ class Users::RegistrationsController < Devise::RegistrationsController
|
||||
end
|
||||
|
||||
def after_inactive_sign_up_path_for(resource_or_scope)
|
||||
beta_site? ? new_user_session_path : super
|
||||
users_sign_up_success_path
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
8
app/views/users/registrations/success.html.erb
Normal file
8
app/views/users/registrations/success.html.erb
Normal file
@@ -0,0 +1,8 @@
|
||||
<h2><%= t("devise_views.users.registrations.success.title") %></h2>
|
||||
<p><%= t("devise_views.users.registrations.success.thank_you_html") %></p>
|
||||
<p><%= t("devise_views.users.registrations.success.instructions_1_html") %></p>
|
||||
<p><%= t("devise_views.users.registrations.success.instructions_2_html") %></p>
|
||||
<p>
|
||||
<%= link_to t("devise_views.users.registrations.success.back_to_index"),
|
||||
root_path, class: "button radius small margin-top expand" %>
|
||||
</p>
|
||||
@@ -63,6 +63,12 @@ en:
|
||||
organization_signup_link: "Sign up here"
|
||||
terms: "To sign up in this site your accept the %{terms}"
|
||||
terms_link: "terms of use"
|
||||
success:
|
||||
title: "Review your email inbox"
|
||||
thank_you_html: "Thank you for registering. Now you must <b>confirm your email account</b>."
|
||||
instructions_1_html: "Please <b>review your email inbox</b> - we have sent you a <b>link to confirm your account</b>."
|
||||
instructions_2_html: "Once you click that link, you will be able to start participating"
|
||||
back_to_index: "Understood, take me back to the home page"
|
||||
organizations:
|
||||
registrations:
|
||||
new:
|
||||
@@ -79,7 +85,7 @@ en:
|
||||
instructions_1_html: "We will <b>contact you soon</b> in order to verify that you represent your collective."
|
||||
instructions_2_html: "Meanwhile, <b>review your email</b>. We have sent you a <b>confirmation link to activate your account</b>."
|
||||
instructions_3_html: "When you confirm your account will then be able to participate as a non-verified organization."
|
||||
back_to_index: "Ok, go back to index"
|
||||
back_to_index: "Understood, take me back to the home page"
|
||||
sessions:
|
||||
new:
|
||||
title: "Log in"
|
||||
|
||||
@@ -63,6 +63,12 @@ es:
|
||||
organization_signup_link: "Regístrate aquí"
|
||||
terms: "Al registrarte aceptas las %{terms}"
|
||||
terms_link: "condiciones de uso"
|
||||
success:
|
||||
title: "Revisa tu correo"
|
||||
thank_you_html: "Gracias por registrarte en la web. Ahora debes <b>confirmar tu correo</b>."
|
||||
instructions_1_html: "Por favor <b>revisa tu correo electrónico</b> - te hemos enviado un <b>enlace para confirmar tu cuenta</b>."
|
||||
instructions_2_html: "Una vez confirmado, podrás empezar a participar."
|
||||
back_to_index: "Entendido, volver a la página principal"
|
||||
organizations:
|
||||
registrations:
|
||||
new:
|
||||
|
||||
@@ -11,10 +11,11 @@ Rails.application.routes.draw do
|
||||
skip: [:omniauth_callbacks]
|
||||
|
||||
devise_scope :organization do
|
||||
get "organizations/sign_up/success", to: "organizations/registrations#success"
|
||||
get 'organizations/sign_up/success', to: 'organizations/registrations#success'
|
||||
end
|
||||
|
||||
devise_scope :user do
|
||||
get 'users/sign_up/success', to: 'users/registrations#success'
|
||||
get :finish_signup, to: 'users/registrations#finish_signup'
|
||||
patch :do_finish_signup, to: 'users/registrations#do_finish_signup'
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user