Improved event registration page. Kinda....
This commit is contained in:
parent
61be84a7f9
commit
fff31f5ac0
2 changed files with 34 additions and 9 deletions
33
app/views/conference_registrations/_event.html.haml
Normal file
33
app/views/conference_registrations/_event.html.haml
Normal file
|
|
@ -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
|
||||||
|
|
@ -14,14 +14,6 @@
|
||||||
= f.inputs 'Pre-registration required for the following:' do
|
= f.inputs 'Pre-registration required for the following:' do
|
||||||
|
|
||||||
- @registration.events_ordered.each do |event|
|
- @registration.events_ordered.each do |event|
|
||||||
%label
|
= render 'event', event: event, event_schedule: event.event_schedules.first
|
||||||
= 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 'conferences/code_of_conduct', organization: @conference.organization
|
= render 'conferences/code_of_conduct', organization: @conference.organization
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue