More tweaks to the event registrations page
This commit is contained in:
parent
fff31f5ac0
commit
611277ef67
2 changed files with 12 additions and 8 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
.panel.panel-default
|
.panel.panel-default{class: ("panel-success" if event.registrations.include?(@registration)) }
|
||||||
.panel-heading
|
.panel-heading
|
||||||
%label{for: "registration_event_ids_#{event.id}"}
|
%label{for: "registration_event_ids_#{event.id}"}
|
||||||
%h3{style: 'margin: 0 auto;'}
|
%h3{style: 'margin: 0 auto;'}
|
||||||
|
|
@ -14,17 +14,17 @@
|
||||||
%p
|
%p
|
||||||
- if event.speakers.any?
|
- if event.speakers.any?
|
||||||
presented by #{event.speaker_names}
|
presented by #{event.speaker_names}
|
||||||
|
- if event_schedule.present?
|
||||||
|
.h4.track
|
||||||
|
%span.fa.fa-clock-o
|
||||||
|
%span.label{ style: "background-color: grey" }
|
||||||
|
= event_schedule.start_time.strftime('%A, %B %-d %H:%M')
|
||||||
|
\-
|
||||||
|
= event_schedule.end_time.strftime('%H:%M')
|
||||||
%p
|
%p
|
||||||
= markdown(truncate(event.abstract, length: 250))
|
= markdown(truncate(event.abstract, length: 250))
|
||||||
-# TODO: More informative text or aria-label.
|
-# TODO: More informative text or aria-label.
|
||||||
= link_to 'more', conference_program_proposal_path(@conference.short_title, event.id), target: '_blank'
|
= 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
|
- if event.track
|
||||||
%span.track
|
%span.track
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,10 @@
|
||||||
- if @conference.program.events.with_registration_open.any? || @registration.events.any?
|
- if @conference.program.events.with_registration_open.any? || @registration.events.any?
|
||||||
= f.inputs 'Pre-registration required for the following:' do
|
= 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.
|
||||||
- @registration.events_ordered.each do |event|
|
- @registration.events_ordered.each do |event|
|
||||||
= render 'event', event: event, event_schedule: event.event_schedules.first
|
= render 'event', event: event, event_schedule: event.event_schedules.first
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue