Merge branch 'remove-travel-schedule' into remove-schedule
* remove-travel-schedule: Remove travel schedule from registration Correct variable error fixes redirect loop add if condition to send booth rejection mail
This commit is contained in:
commit
be657c45a4
4 changed files with 6 additions and 4 deletions
|
|
@ -92,7 +92,9 @@ module Admin
|
||||||
@booth.reject!
|
@booth.reject!
|
||||||
|
|
||||||
if @booth.save
|
if @booth.save
|
||||||
Mailbot.conference_booths_rejection_mail(@booth).deliver_later
|
if @conference.email_settings.send_on_booths_rejection
|
||||||
|
Mailbot.conference_booths_rejection_mail(@booth).deliver_later
|
||||||
|
end
|
||||||
redirect_to admin_conference_booths_path(conference_id: @conference.short_title),
|
redirect_to admin_conference_booths_path(conference_id: @conference.short_title),
|
||||||
notice: "#{(t'booth').capitalize} successfully rejected."
|
notice: "#{(t'booth').capitalize} successfully rejected."
|
||||||
else
|
else
|
||||||
|
|
|
||||||
|
|
@ -35,8 +35,7 @@ module Users
|
||||||
openid.save!
|
openid.save!
|
||||||
|
|
||||||
sign_in user
|
sign_in user
|
||||||
redirect_to request.env['omniauth.origin'] || root_path,
|
redirect_to root_path, notice: "#{user.email} signed in successfully with #{provider}"
|
||||||
notice: "#{user.email} signed in successfully with #{provider}"
|
|
||||||
rescue => e
|
rescue => e
|
||||||
flash[:error] = e.message
|
flash[:error] = e.message
|
||||||
redirect_back_or_to new_user_registration_path
|
redirect_back_or_to new_user_registration_path
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,7 @@
|
||||||
= render partial: 'devise/shared/sign_up_form_embedded'
|
= render partial: 'devise/shared/sign_up_form_embedded'
|
||||||
|
|
||||||
= render partial: 'registration_info', locals: { f: f }
|
= render partial: 'registration_info', locals: { f: f }
|
||||||
|
= f.input :conference_id, as: :hidden, value: @conference.id
|
||||||
.row
|
.row
|
||||||
.col-md-12
|
.col-md-12
|
||||||
%p.pull-right
|
%p.pull-right
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@
|
||||||
.row
|
.row
|
||||||
.col-md-3
|
.col-md-3
|
||||||
%h3
|
%h3
|
||||||
- if event.speakers.any?
|
- if @event.speakers.any?
|
||||||
Presented by:
|
Presented by:
|
||||||
- @speakers_ordered.each do |speaker|
|
- @speakers_ordered.each do |speaker|
|
||||||
.speakerinfo
|
.speakerinfo
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue