You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
2.9 KiB
62 lines
2.9 KiB
= registration_step_header
|
|
= row do
|
|
= columns(medium: 12) do
|
|
= save_registration_step do
|
|
- if @is_attending
|
|
.table.responsive-table#review
|
|
- @step_data.each do |step, data|
|
|
- unless data[:type] == :none
|
|
.table-tr
|
|
.table-th
|
|
=_"articles.conference_registration.step_names.#{step}"
|
|
= button :edit, name: :edit_step, value: step, class: [:unstyled, :edit]
|
|
.table-td
|
|
- case data[:type]
|
|
- when :bool
|
|
=_"forms.actions.generic.#{data[:value] ? 'yes' : 'no'}"
|
|
- when :list
|
|
= data[:value].map { |item| _"#{data[:key]}.#{item}" }.join(_!(", ")).html_safe
|
|
- when :currency
|
|
= (number_to_currency data[:value].to_f, unit: '$')
|
|
=_!(data[:currency].to_s).html_safe
|
|
- when :date
|
|
= date(data[:value].to_date, :long).html_safe
|
|
- when :enum
|
|
=_("#{data[:key] || ('forms.labels.generic.' + step.to_s + '.')}#{data[:value]}")
|
|
- when :html
|
|
.scroller= richtext(data[:value].html_safe)
|
|
- else
|
|
- if data[:key].present?
|
|
=_"#{data[:key]}.#{data[:value]}"
|
|
- else
|
|
= data[:value].to_s.html_safe
|
|
- else
|
|
%p.centered=_'articles.conference_registration.paragraphs.registration_cancelled', :p
|
|
- if @allow_cancel_attendance
|
|
.actions.centered
|
|
= button :cancel_registration, value: :cancel_registration, class: :red
|
|
- if @allow_reopen_attendance
|
|
.actions.centered
|
|
= button :reopen_registration, value: :reopen_registration
|
|
= row do
|
|
= columns(medium: 12) do
|
|
%h3=_'articles.workshops.headings.Workshops', :t
|
|
- if @this_conference.workshop_info.present?
|
|
= richtext @this_conference.workshop_info
|
|
- else
|
|
%p=_'articles.conference_registration.paragraphs.workshops', :p
|
|
.actions.centered
|
|
.buttons
|
|
= link_to (_'articles.conference_registration.actions.View_Workshops'), workshops_path(@this_conference), class: :button
|
|
= link_to (_'actions.workshops.create'), create_workshop_path(@this_conference), class: [:button, :modify]
|
|
- if @my_workshops.present?
|
|
= row do
|
|
= columns(medium: 12) do
|
|
%h3=_'articles.workshops.headings.Your_Workshops'
|
|
= render 'workshops/workshop_previews', workshops: @my_workshops
|
|
= row do
|
|
= columns(medium: 12) do
|
|
%h3=_'articles.workshops.headings.Workshops_that_you_would_like_to_attend'
|
|
%p=_'articles.workshops.paragraphs.Workshops_that_you_would_like_to_attend', :p
|
|
- if @interested_workshops.present?
|
|
= render 'workshops/workshop_previews', workshops: @interested_workshops
|
|
|