2018-03-16 16:23:01 -07:00
|
|
|
- unless @conference.code_of_conduct.blank?
|
|
|
|
|
- code_of_conduct_link = link_to 'Code of Conduct', '#',
|
|
|
|
|
data: { toggle: 'modal', target: '#modal-code-of-conduct'}
|
|
|
|
|
- if @registration.accepted_code_of_conduct
|
|
|
|
|
= fa_icon 'check-square-o'
|
|
|
|
|
I have read and accepted the
|
|
|
|
|
= code_of_conduct_link
|
|
|
|
|
- else
|
|
|
|
|
= f.input :accepted_code_of_conduct,
|
|
|
|
|
label: "I have read and accept the #{code_of_conduct_link}".html_safe,
|
|
|
|
|
required: true
|
2016-06-28 18:16:06 +03:00
|
|
|
|
2016-04-22 18:18:46 +03:00
|
|
|
- if @conference.program.events.with_registration_open.any? || @registration.events.any?
|
|
|
|
|
= f.inputs 'Pre-registration required for the following:' do
|
|
|
|
|
|
2020-07-17 22:48:05 -07:00
|
|
|
-# TODO: This needs to be easier to use.
|
|
|
|
|
%p
|
|
|
|
|
You are registered for #{pluralize(@registration.events.count, 'event')}.
|
|
|
|
|
They are at the end of this list.
|
2016-04-22 18:18:46 +03:00
|
|
|
- @registration.events_ordered.each do |event|
|
2021-03-11 23:21:08 -08:00
|
|
|
= render 'conference_registrations/event', event: event, event_schedule: event.event_schedules.first, conference: @conference, registration: @registration
|
2016-04-22 18:18:46 +03:00
|
|
|
|
2018-03-16 16:23:01 -07:00
|
|
|
= render 'conferences/code_of_conduct', organization: @conference.organization
|