2015-08-21 19:29:43 -07:00
= columns(medium: 12) do
%h2=_'articles.conference_registration.headings.Youre_Done', 'You\'re Done!'
= columns(medium: 6, large: 7) do
%p=_'articles.conference_registration.paragraphs.done', :p
%p=_'articles.conference_registration.paragraphs.workshops', 'You can now take a look at proposed workshops and even propose one yourself if you like.'
.actions
= link_to (_'articles.conference_registration.actions.View_Workshops'), workshops_path(@conference.slug), :class => 'button'
= columns(medium: 6, large: 5) do
%h3=_'articles.conference_registration.headings.Your_Registration'
%table
%tr
%th=_'articles.conference_registration.headings.name'
2015-09-12 18:18:46 -07:00
%td=_!(current_user.firstname || '')
2015-08-21 19:29:43 -07:00
%tr
%th=_'articles.conference_registration.headings.location'
2015-09-12 18:18:46 -07:00
%td=_!(@registration.city || '')
2015-08-21 19:29:43 -07:00
%tr
%th=_'articles.conference_registration.headings.arrival'
2015-09-12 18:18:46 -07:00
%td=date(@registration.arrival || @this_conference.start_date)
2015-08-21 19:29:43 -07:00
%tr
%th=_'articles.conference_registration.headings.departure'
2015-09-12 18:18:46 -07:00
%td=date(@registration.departure || @this_conference.end_date)
2015-08-21 19:29:43 -07:00
%tr
%th=_'articles.conference_registration.headings.languages'
2015-09-09 21:36:14 -07:00
%td=_!((JSON.parse(@registration.languages || '[]').map { |x| _"languages.#{x}" }).join(', ').to_s).html_safe
2015-08-21 19:29:43 -07:00
%tr
%th=_'articles.conference_registration.headings.housing'
2015-09-09 21:36:14 -07:00
%td=_"articles.conference_registration.questions.housing.#{@registration.housing || 'none'}"
2015-08-21 19:29:43 -07:00
%tr
%th=_'articles.conference_registration.headings.bike'
2015-09-09 21:36:14 -07:00
%td=_"articles.conference_registration.questions.bike.#{@registration.bike || 'none'}"
2015-08-21 19:29:43 -07:00
%tr
%th=_'articles.conference_registration.headings.food'
2015-09-09 21:36:14 -07:00
%td=_"articles.conference_registration.questions.food.#{@registration.food || 'meat'}"
2015-08-21 19:29:43 -07:00
%tr
%th=_'articles.conference_registration.headings.allergies'
%td
- if @registration.allergies.blank?
=_'articles.conference_registration.none'
- else
=_!@registration.allergies
%tr
%th=_'articles.conference_registration.headings.other'
2015-09-12 18:18:46 -07:00
%td=_!(@registration.other || '')
2015-08-21 19:29:43 -07:00
%tr
%th=_'articles.conference_registration.headings.payment'
2015-09-12 18:18:46 -07:00
%td=_!('$' + (@amount || 0))
2015-09-29 22:31:22 -07:00
- if @conference.registration_open
= form_tag register_path(@this_conference.slug) do
.actions
2017-04-09 11:37:16 -07:00
= button :edit_registration, :value => :register