Registration thank you email and proposed workshops on front page

This commit is contained in:
Godwin
2015-09-11 17:31:14 -07:00
parent 326138a2fe
commit a0e8563d9d
25 changed files with 270 additions and 59 deletions
+7 -1
View File
@@ -487,7 +487,9 @@ class ConferencesController < ApplicationController
@register_template = :questions if is_post
when :save
if is_post
@registration ||= ConferenceRegistration.new
if (new_registration = (!@registration))
@registration = ConferenceRegistration.new
end
@registration.conference_id = @this_conference.id
@registration.user_id = current_user.id
@@ -508,6 +510,10 @@ class ConferencesController < ApplicationController
current_user.lastname = nil
current_user.save
if new_registration
UserMailer.registration_confirmation(@registration).deliver_now
end
@register_template = @registration.registration_fees_paid ? :done : :payment
end
when :payment