rework registrations page
This commit is contained in:
parent
a05924b94b
commit
30c080ac65
1 changed files with 14 additions and 12 deletions
|
|
@ -1,15 +1,17 @@
|
||||||
- if @conference.questions.any?
|
- if @conference.questions.any?
|
||||||
= render partial: 'conference_registrations/questions', locals: { f: f }
|
= render partial: 'conference_registrations/questions', locals: { f: f }
|
||||||
- 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 'Select which events you will attend:' do
|
||||||
|
%table.table
|
||||||
|
%tr
|
||||||
|
%td Register?
|
||||||
|
%td Track
|
||||||
|
%td Title
|
||||||
- @registration.events_ordered.each do |event|
|
- @registration.events_ordered.each do |event|
|
||||||
|
%tr
|
||||||
%label
|
%label
|
||||||
= hidden_field_tag "registration[event_ids][]", nil
|
= hidden_field_tag "registration[event_ids][]", nil
|
||||||
= check_box_tag "registration[event_ids][]", event.id, event.registrations.include?(@registration)
|
%td= check_box_tag "registration[event_ids][]", event.id, event.registrations.include?(@registration)
|
||||||
= event.title
|
%td= event&.track&.name
|
||||||
.text-muted
|
%td= event.title
|
||||||
= registered_text(event)
|
|
||||||
- if event.scheduled?
|
|
||||||
(Scheduled on: #{event.time.to_date})
|
|
||||||
%br
|
%br
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue