redirects are ok now
Conflicts: app/controllers/application_controller.rb app/controllers/confirmations_controller.rb
This commit is contained in:
parent
ee1246caa4
commit
b10a2edc22
|
@ -46,9 +46,9 @@ class BasicInfosController < ApplicationController
|
|||
render :json => response.to_json
|
||||
end
|
||||
|
||||
def confirmation
|
||||
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
|
@ -1,7 +1,6 @@
|
|||
class ConfirmationsController < Devise::ConfirmationsController
|
||||
layout "devise"
|
||||
|
||||
|
||||
def show
|
||||
self.resource = resource_class.confirm_by_token(params[:confirmation_token])
|
||||
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
class RegistrationsController < Devise::RegistrationsController
|
||||
layout "devise"
|
||||
def after_sign_up_path_for(resource)
|
||||
basic_infos_confirmation_path
|
||||
end
|
||||
end
|
|
@ -16,7 +16,7 @@
|
|||
<% end %>
|
||||
</td>
|
||||
<td>
|
||||
<%= 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) %>
|
||||
<div class="quick-edit">
|
||||
<ul class="nav nav-pills">
|
||||
<%= content_tag(:li, link_to(t(:edit),edit_admin_users_new_interface_path(user_for_listing))) if is_admin? %>
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
<%= image_tag(user_for_summary.avatar) %>
|
||||
</div>
|
||||
<div class="member-info">
|
||||
<h4 class="member-name"><%= link_to (user_for_summary.name ? user_for_summary.name : user_for_summary.user_id),admin_users_new_interface_path(user_for_summary)%></h4>
|
||||
<h4 class="member-name"><%= 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)%></h4>
|
||||
<div class="member-mail muted"><%= user_for_summary.email%></div>
|
||||
<hr>
|
||||
<ul class="member-roles">
|
||||
|
|
|
@ -18,5 +18,5 @@
|
|||
</div>
|
||||
<%= image_tag(user_for_thumbnail.avatar) %>
|
||||
</div>
|
||||
<h4 class="member-name text-center"><%= link_to (user_for_thumbnail.name ? user_for_thumbnail.name : user_for_thumbnail.user_id),admin_users_new_interface_path(user_for_thumbnail)%></h4>
|
||||
<h4 class="member-name text-center"><%= 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)%></h4>
|
||||
</li>
|
|
@ -0,0 +1,20 @@
|
|||
<%= stylesheet_link_tag "sign_up" %>
|
||||
<section id="main-wrap">
|
||||
<div class="sign-up have-other-sign-in facebook-form">
|
||||
|
||||
<% flash.each do |key, msg| %>
|
||||
<%= content_tag :p, msg, :class => [key, "alert alert-error in fade"] %>
|
||||
<% end %>
|
||||
|
||||
<div class="form">
|
||||
<h3 class="login-logo">Thank you for registering.</h3>
|
||||
<div class="form-block">
|
||||
<div class="form-list clearfix option-block">
|
||||
<div class="alert alert-success">We have sent you a confirmation email on your email id. Please confirm to proceed</div>
|
||||
<a href="<%= root_path %>">Home</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</section>
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue