Add email notifications for events registrations, add switch-checkboxes, create EventsRegistrations controller, separate page for events that require registration
This commit is contained in:
parent
139a8565e2
commit
77af75f319
38 changed files with 1313 additions and 403 deletions
|
|
@ -0,0 +1,8 @@
|
|||
.row
|
||||
.col-md-10
|
||||
%h4
|
||||
%span.fa-stack
|
||||
%i.fa.fa-square-o.fa-stack-2x
|
||||
%i.fa.fa-edit.fa-stack-1x
|
||||
There are #{@conference.program.events.require_registration.length} sessions that require you to #{link_to 'register', conference_program_events_registrations_path(@conference.short_title)}. Check them out!
|
||||
|
||||
|
|
@ -1,20 +1,5 @@
|
|||
- if @conference.questions.any?
|
||||
= render partial: 'conference_registrations/questions', locals: { f: f }
|
||||
- if @conference.program.events.with_registration_open.any? || @registration.events.any?
|
||||
= 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.start_time.to_date})
|
||||
%br
|
||||
|
||||
|
||||
|
||||
= f.inputs 'Your Travel Info' do
|
||||
= f.input :arrival, as: :string, label: 'Your arrival time', input_html: { value: (f.object.arrival.to_formatted_s(:db_without_seconds) unless f.object.arrival.nil?), id: 'registration-arrival-datepicker',start_date: @conference.start_date,end_date: @conference.end_date,readonly: 'readonly' }
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
.container
|
||||
.row
|
||||
.col-md-12
|
||||
.unobtrusive-flash-container
|
||||
.page-header
|
||||
%h1
|
||||
Registration for
|
||||
|
|
@ -54,33 +55,9 @@
|
|||
= qa.answer.title
|
||||
- else
|
||||
You haven't answered
|
||||
- if @registration.events.any?
|
||||
.row
|
||||
.col-md-12
|
||||
%h4
|
||||
%span.fa-stack
|
||||
%i.fa.fa-square-o.fa-stack-2x
|
||||
%i.fa.fa-check.fa-stack-1x
|
||||
Registered to the following event(s)
|
||||
%ul
|
||||
- @registration.events.each do |event|
|
||||
%li
|
||||
= link_to event.title, conference_program_proposal_path(@conference.short_title, event.id)
|
||||
= '(' + registered_text(event) + ')'
|
||||
|
||||
- if @registration.conference.program.events.remaining_for_registration(@registration).any?
|
||||
.row
|
||||
.col-md-12
|
||||
%h4
|
||||
%span.fa-stack
|
||||
%i.fa.fa-square-o.fa-stack-2x
|
||||
%i.fa.fa-question.fa-stack-1x
|
||||
Events that require registration
|
||||
%ul
|
||||
- @registration.conference.program.events.remaining_for_registration(@registration).each do |event|
|
||||
%li
|
||||
= link_to event.title, conference_program_proposal_path(@conference.short_title, event.id)
|
||||
= '(' + registered_text(event) + ')'
|
||||
- if @conference.program.events.require_registration.any?
|
||||
.events-with-registration
|
||||
= render partial: 'events_with_registration'
|
||||
|
||||
- if @conference.tickets.any?
|
||||
.row
|
||||
|
|
@ -117,6 +94,7 @@
|
|||
.col-md-12
|
||||
-if @registration
|
||||
.btn-group-vertical.pull-right
|
||||
|
||||
= link_to 'Edit your Registration', edit_conference_conference_registrations_path(@conference.short_title), class: 'btn btn-success', disabled: @conference.end_date < Date.today
|
||||
= link_to 'Unregister', conference_conference_registrations_path(@conference.short_title),
|
||||
method: :delete, class: 'btn btn-danger btn-xs', confirm: 'Are you sure you want to unregister?', disabled: @conference.end_date < Date.today
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue