osem-fcy/app/views/conference_registrations/_registration_info.html.haml

24 lines
1 KiB
Text
Raw Normal View History

- 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-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
-# 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
= render 'conferences/code_of_conduct', organization: @conference.organization