Browse Source

wtf?

development
Godwin 10 years ago
parent
commit
276f5c8381
  1. 4
      app/views/conferences/_register_new_organization.html.haml
  2. 5
      app/views/conferences/_register_organizations.html.haml

4
app/views/conferences/_register_new_organization.html.haml

@ -1,4 +1,8 @@
- org_index = session[:registration][:new_org_index] || 0 - org_index = session[:registration][:new_org_index] || 0
- if session[:registration][:new_organization].nil?
- session[:registration][:new_organization] = Array.new
- session[:registration][:new_organization][0] = Hash.new
- org_index = 0
= hidden_field_tag :new_org_index, org_index = hidden_field_tag :new_org_index, org_index
- if session[:registration][:new_organization].length > 1 - if session[:registration][:new_organization].length > 1
%h3=_'registration.new_organization.list.title','Your New Organizations' %h3=_'registration.new_organization.list.title','Your New Organizations'

5
app/views/conferences/_register_organizations.html.haml

@ -1,4 +1,7 @@
- registration = ConferenceRegistration.find(session[:registration][:registration_id]) - puts session[:registration][:registration_id]
- registration = ConferenceRegistration.find_by(:email => session[:registration][:email])
- session[:registration][:registration_id] = registration.id
- puts session[:registration][:registration_id]
- if registration && registration.is_confirmed - if registration && registration.is_confirmed
%h3=_'register.organizations.confirm_thanks.title','Thanks for confirming!' %h3=_'register.organizations.confirm_thanks.title','Thanks for confirming!'
- if session[:registration][:is_workshop_host] - if session[:registration][:is_workshop_host]

Loading…
Cancel
Save