diff --git a/app/views/conference_registrations/_event.html.haml b/app/views/conference_registrations/_event.html.haml new file mode 100644 index 00000000..75b6020c --- /dev/null +++ b/app/views/conference_registrations/_event.html.haml @@ -0,0 +1,33 @@ +.panel.panel-default + .panel-heading + %label{for: "registration_event_ids_#{event.id}"} + %h3{style: 'margin: 0 auto;'} + = hidden_field_tag "registration[event_ids][]", nil + = check_box_tag "registration[event_ids][]", event.id, event.registrations.include?(@registration), id: "registration_event_ids_#{event.id}" + = event.title + %small + = event.subtitle + .panel-body + -# %p + -# = canceled_replacement_event_label(event, event_schedule) + -# = replacement_event_notice(event_schedule) + %p + - if event.speakers.any? + presented by #{event.speaker_names} + %p + = markdown(truncate(event.abstract, length: 250)) + -# TODO: More informative text or aria-label. + = link_to 'more', conference_program_proposal_path(@conference.short_title, event.id), target: '_blank' + - if event_schedule.present? + %span.track + %span.fa.fa-clock-o + %span.label{ style: "background-color: grey" } + = event_schedule.start_time.strftime('%A, %d %b %-d %H:%M') + \- + = event_schedule.end_time.strftime('%H:%M') + + - if event.track + %span.track + %span.fa.fa-road + %span.label{ style: "background-color: #{event.track.color}; color: #{ contrast_color(event.track.color) }" } + = event.track.name diff --git a/app/views/conference_registrations/_registration_info.html.haml b/app/views/conference_registrations/_registration_info.html.haml index 5fdd9bf4..18b6e985 100644 --- a/app/views/conference_registrations/_registration_info.html.haml +++ b/app/views/conference_registrations/_registration_info.html.haml @@ -14,14 +14,6 @@ = f.inputs 'Pre-registration required for the following:' do - @registration.events_ordered.each do |event| - %label - = hidden_field_tag "registration[event_ids][]", nil - = check_box_tag "registration[event_ids][]", event.id, event.registrations.include?(@registration) - = event.title - .text-muted - = registered_text(event) - - if event.scheduled? - (Scheduled on: #{event.time.to_date}) - %br + = render 'event', event: event, event_schedule: event.event_schedules.first = render 'conferences/code_of_conduct', organization: @conference.organization