diff --git a/app/controllers/basic_infos_controller.rb b/app/controllers/basic_infos_controller.rb index e9e04787..08397bf0 100644 --- a/app/controllers/basic_infos_controller.rb +++ b/app/controllers/basic_infos_controller.rb @@ -46,9 +46,9 @@ class BasicInfosController < ApplicationController render :json => response.to_json end - - - + def confirmation + + end end \ No newline at end of file diff --git a/app/controllers/confirmations_controller.rb b/app/controllers/confirmations_controller.rb index 6ec06db0..c601a3e0 100644 --- a/app/controllers/confirmations_controller.rb +++ b/app/controllers/confirmations_controller.rb @@ -1,7 +1,6 @@ class ConfirmationsController < Devise::ConfirmationsController layout "devise" - def show self.resource = resource_class.confirm_by_token(params[:confirmation_token]) diff --git a/app/controllers/registrations_controller.rb b/app/controllers/registrations_controller.rb index 57aa5f7c..85c7f50a 100644 --- a/app/controllers/registrations_controller.rb +++ b/app/controllers/registrations_controller.rb @@ -1,3 +1,6 @@ class RegistrationsController < Devise::RegistrationsController layout "devise" + def after_sign_up_path_for(resource) + basic_infos_confirmation_path + end end \ No newline at end of file diff --git a/app/views/admin/users_new_interface/_user_for_listing.html.erb b/app/views/admin/users_new_interface/_user_for_listing.html.erb index d77bf738..02445ff6 100644 --- a/app/views/admin/users_new_interface/_user_for_listing.html.erb +++ b/app/views/admin/users_new_interface/_user_for_listing.html.erb @@ -16,7 +16,7 @@ <% end %> - <%= link_to (user_for_listing.name ? user_for_listing.name : user_for_listing.user_id),admin_users_new_interface_path(user_for_listing) %> + <%= link_to (user_for_listing.name && user_for_listing.name != user_for_listing.email ? user_for_listing.name : user_for_listing.user_id),admin_users_new_interface_path(user_for_listing) %>
-

<%= link_to (user_for_summary.name ? user_for_summary.name : user_for_summary.user_id),admin_users_new_interface_path(user_for_summary)%>

+

<%= link_to (user_for_summary.name && user_for_summary.name != user_for_summary.email ? user_for_summary.name : user_for_summary.user_id),admin_users_new_interface_path(user_for_summary)%>

<%= user_for_summary.email%>

<%= image_tag(user_for_thumbnail.avatar) %> -

<%= link_to (user_for_thumbnail.name ? user_for_thumbnail.name : user_for_thumbnail.user_id),admin_users_new_interface_path(user_for_thumbnail)%>

+

<%= link_to (user_for_thumbnail.name && user_for_thumbnail.name != user_for_thumbnail.email ? user_for_thumbnail.name : user_for_thumbnail.user_id),admin_users_new_interface_path(user_for_thumbnail)%>

\ No newline at end of file diff --git a/app/views/basic_infos/confirmation.html.erb b/app/views/basic_infos/confirmation.html.erb new file mode 100644 index 00000000..ca80c859 --- /dev/null +++ b/app/views/basic_infos/confirmation.html.erb @@ -0,0 +1,20 @@ +<%= stylesheet_link_tag "sign_up" %> +
+
+ + <% flash.each do |key, msg| %> + <%= content_tag :p, msg, :class => [key, "alert alert-error in fade"] %> + <% end %> + +
+ +
+
+
We have sent you a confirmation email on your email id. Please confirm to proceed
+ Home +
+
+
+ +
+
\ No newline at end of file diff --git a/config/routes.rb b/config/routes.rb index 05aabae7..6fcbf460 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -21,6 +21,7 @@ Orbit::Application.routes.draw do get 'basic_infos/form' => "basic_infos#form_page" get 'basic_infos/role_page' => "basic_infos#role_page" get 'basic_infos/check_availability' => "basic_infos#check_availability" + get 'basic_infos/confirmation' => "basic_infos#confirmation" post 'basic_infos/role_update' => "basic_infos#role_update" match 'basic_infos/basic_info_update' => "basic_infos#basic_info_update" # routes for admin