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
|
||||
%label{for: "registration_event_ids_#{event.id}"}
|
||||
%h3{style: 'margin: 0 auto;'}
|
||||
|
|
@ -14,17 +14,17 @@
|
|||
%p
|
||||
- if event.speakers.any?
|
||||
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
|
||||
= 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
|
||||
|
|
|
|||
|
|
@ -13,6 +13,10 @@
|
|||
- 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.
|
||||
- @registration.events_ordered.each do |event|
|
||||
= render 'event', event: event, event_schedule: event.event_schedules.first
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue