2014-11-14 11:58:36 +01:00
|
|
|
.container
|
|
|
|
|
.row
|
|
|
|
|
.col-md-12
|
|
|
|
|
.page-header
|
|
|
|
|
%h1
|
2014-12-05 16:04:34 +01:00
|
|
|
Registration for
|
2014-11-14 11:58:36 +01:00
|
|
|
= @conference.title
|
2014-12-05 16:04:34 +01:00
|
|
|
%p.text-muted
|
|
|
|
|
-if @conference.venue
|
|
|
|
|
at
|
|
|
|
|
%strong
|
2020-01-23 21:43:44 -08:00
|
|
|
= "#{@conference.venue_name},"
|
|
|
|
|
= "#{@conference.venue_street},"
|
|
|
|
|
= "#{@conference.city} / #{@conference.country_name}."
|
2014-11-14 11:58:36 +01:00
|
|
|
%small
|
|
|
|
|
= date_string(@conference.start_date, @conference.end_date)
|
2018-03-16 16:23:01 -07:00
|
|
|
- unless @conference.code_of_conduct.blank?
|
|
|
|
|
.row
|
|
|
|
|
.col-md-12
|
2022-05-22 00:50:49 +02:00
|
|
|
%h4
|
|
|
|
|
.fa-stack
|
|
|
|
|
.fa-solid.fa-square-dashed
|
|
|
|
|
.fa-solid.fa-handshake
|
2025-01-30 17:08:29 +01:00
|
|
|
= link_to code_of_conduct_conference_path(@conference.short_title) do
|
|
|
|
|
Code of Conduct
|
2018-03-16 16:23:01 -07:00
|
|
|
%ul.fa-ul
|
|
|
|
|
- if @registration.accepted_code_of_conduct
|
|
|
|
|
%li.text-info
|
2022-05-18 06:31:12 +02:00
|
|
|
%span.fa-li
|
|
|
|
|
= icon('fa-solid', 'check')
|
2025-01-30 17:08:29 +01:00
|
|
|
You have accepted the Code of Conduct
|
2018-03-16 16:23:01 -07:00
|
|
|
- else
|
|
|
|
|
%li.text-warning
|
2022-05-18 06:31:12 +02:00
|
|
|
%span.fa-li
|
|
|
|
|
= icon('fa-solid', 'circle-exclamation')
|
2025-01-30 17:08:29 +01:00
|
|
|
You need to accept the Code of Conduct. Please
|
|
|
|
|
= link_to 'edit your Registration.', edit_conference_conference_registration_path(@conference.short_title), disabled: @conference.end_date < Date.today
|
2016-06-28 18:16:06 +03:00
|
|
|
- if @conference.surveys.for_registration.any?
|
2014-12-05 16:04:34 +01:00
|
|
|
.row
|
|
|
|
|
.col-md-12
|
|
|
|
|
%h4
|
|
|
|
|
%span.fa-stack
|
2022-05-18 06:31:12 +02:00
|
|
|
%i.fa-solid.fa-square-dashed.fa-stack-2x
|
|
|
|
|
%i.fa-solid.fa-info.fa-stack-1x
|
2016-06-28 18:16:06 +03:00
|
|
|
Surveys
|
|
|
|
|
|
2014-12-05 16:04:34 +01:00
|
|
|
%ul
|
2016-06-28 18:16:06 +03:00
|
|
|
= render partial: 'surveys/list', locals: { surveys: @conference.surveys.for_registration, conference: @conference }
|
2016-04-22 18:18:46 +03:00
|
|
|
- if @registration.events.any?
|
2014-12-05 16:04:34 +01:00
|
|
|
.row
|
|
|
|
|
.col-md-12
|
|
|
|
|
%h4
|
|
|
|
|
%span.fa-stack
|
2022-05-18 06:31:12 +02:00
|
|
|
%i.fa-solid.fa-square-dashed.fa-stack-2x
|
|
|
|
|
%i.fa-solid.fa-check.fa-stack-1x
|
2016-04-22 18:18:46 +03:00
|
|
|
Registered to the following event(s)
|
2014-12-05 16:04:34 +01:00
|
|
|
%ul
|
2016-04-22 18:18:46 +03:00
|
|
|
- @registration.events.each do |event|
|
2014-12-05 16:04:34 +01:00
|
|
|
%li
|
2016-04-22 18:18:46 +03:00
|
|
|
= 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
|
2022-05-18 06:31:12 +02:00
|
|
|
%i.fa-solid.fa-square-dashed.fa-stack-2x
|
|
|
|
|
%i.fa-solid.fa-question.fa-stack-1x
|
2016-04-22 18:18:46 +03:00
|
|
|
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) + ')'
|
|
|
|
|
|
2014-12-09 15:19:01 +01:00
|
|
|
- if @conference.tickets.any?
|
|
|
|
|
.row
|
|
|
|
|
.col-md-12
|
2018-12-29 00:08:32 -08:00
|
|
|
%h4
|
|
|
|
|
%span.fa-stack
|
2022-05-18 06:31:12 +02:00
|
|
|
%i.fa-solid.fa-square-dashed.fa-stack-2x
|
|
|
|
|
%i.fa-solid.fa-ticket.fa-stack-1x
|
2018-12-29 00:08:32 -08:00
|
|
|
Tickets
|
2016-08-11 17:47:52 +05:30
|
|
|
- if @tickets.any?
|
2018-12-29 00:08:32 -08:00
|
|
|
Total Purchased:
|
|
|
|
|
= "(#{@tickets.first.price.symbol}#{humanized_money @total_price})"
|
|
|
|
|
%ul
|
|
|
|
|
.col-md-12
|
|
|
|
|
- @ticket_payments.each_pair do |ticket_id, tickets|
|
|
|
|
|
%li
|
|
|
|
|
= @total_quantity[ticket_id]
|
|
|
|
|
= tickets.first.title
|
2025-01-30 16:21:30 +01:00
|
|
|
= pluralize(@total_quantity[ticket_id], 'Ticket')
|
2018-12-29 00:08:32 -08:00
|
|
|
for
|
|
|
|
|
= tickets.first.price.symbol
|
|
|
|
|
= humanized_money @total_price_per_ticket[ticket_id]
|
|
|
|
|
%br
|
|
|
|
|
.btn-group{ role: 'group' }
|
|
|
|
|
= link_to 'View all tickets',
|
|
|
|
|
conference_physical_tickets_path(@conference.short_title),
|
|
|
|
|
class: 'btn btn-success'
|
|
|
|
|
= link_to 'Get more tickets',
|
|
|
|
|
conference_tickets_path(@conference.short_title),
|
|
|
|
|
class: 'btn btn-default'
|
2016-08-11 17:47:52 +05:30
|
|
|
- else
|
|
|
|
|
%p
|
2018-12-29 00:08:32 -08:00
|
|
|
You haven't bought any tickets.
|
|
|
|
|
= link_to 'Please get some tickets to support us!', conference_tickets_path(@conference.short_title)
|
|
|
|
|
- if @conference.tickets.for_registration.any?
|
|
|
|
|
%p
|
|
|
|
|
%em
|
|
|
|
|
Your participation won't be valid without getting a
|
|
|
|
|
registration ticket.
|
|
|
|
|
= link_to 'Get tickets',
|
|
|
|
|
conference_tickets_path(@conference.short_title),
|
|
|
|
|
class: 'btn btn-default'
|
2014-12-05 16:04:34 +01:00
|
|
|
|
2014-11-14 11:58:36 +01:00
|
|
|
.row
|
|
|
|
|
.col-md-12
|
2018-12-29 00:08:32 -08:00
|
|
|
- if @registration
|
2014-12-05 16:04:34 +01:00
|
|
|
.btn-group-vertical.pull-right
|
2016-07-05 00:10:18 +05:30
|
|
|
= link_to 'Edit your Registration', edit_conference_conference_registration_path(@conference.short_title), class: 'btn btn-success', disabled: @conference.end_date < Date.today
|
2016-09-26 20:57:11 +05:30
|
|
|
- if @tickets.any?
|
|
|
|
|
= link_to 'Unregister', conference_conference_registration_path(@conference.short_title), method: :delete, class: 'btn btn-danger btn-xs',
|
|
|
|
|
data: { confirm: "Your ticket purchases won't be refunded. Are you sure you want to unregister?" }, disabled: @conference.end_date < Date.today
|
|
|
|
|
- else
|
|
|
|
|
= link_to 'Unregister', conference_conference_registration_path(@conference.short_title), method: :delete, class: 'btn btn-danger btn-xs',
|
|
|
|
|
data: { confirm: "You haven't purchased any ticket. Are you sure you want to unregister?" }, disabled: @conference.end_date < Date.today
|
2014-11-14 11:58:36 +01:00
|
|
|
- else
|
2016-07-05 00:10:18 +05:30
|
|
|
= link_to 'Register', new_conference_conference_registration_path(@conference.short_title), class: 'btn btn-success btn-lg pull-right'
|
2014-12-05 16:04:34 +01:00
|
|
|
|
|
|
|
|
.row
|
|
|
|
|
.col-md-12
|
|
|
|
|
.page-header
|
|
|
|
|
%h1
|
|
|
|
|
%small
|
|
|
|
|
Meet the people of
|
|
|
|
|
= @conference.short_title
|
|
|
|
|
.col-md-4
|
|
|
|
|
- if @conference.participants.any?
|
|
|
|
|
%h4
|
|
|
|
|
%span.fa-stack
|
2022-05-18 06:31:12 +02:00
|
|
|
%i.fa-solid.fa-square-dashed.fa-stack-2x
|
|
|
|
|
%i.fa-solid.fa-user-group.fa-stack-1x
|
2014-12-05 16:04:34 +01:00
|
|
|
= @conference.participants.count
|
|
|
|
|
Registered
|
2025-01-30 16:21:30 +01:00
|
|
|
= pluralize(@conference.participants.count, 'Attendee')
|
2014-12-05 16:04:34 +01:00
|
|
|
- @conference.participants.each do |participant|
|
2017-05-13 21:08:40 +05:30
|
|
|
= link_to image_tag(participant.gravatar_url(size: '25'), title: "#{participant.name}!", class: 'img-circle'), user_path(participant)
|
2014-12-05 16:04:34 +01:00
|
|
|
.col-md-4.col-md-offset-2
|
2015-10-25 13:29:02 +02:00
|
|
|
- if @conference.program.speakers.confirmed.any?
|
2014-12-05 16:04:34 +01:00
|
|
|
%h4
|
|
|
|
|
%span.fa-stack
|
2022-05-18 06:31:12 +02:00
|
|
|
%i.fa-solid.fa-square-dashed.fa-stack-2x
|
|
|
|
|
%i.fa-solid.fa-microphone.fa-stack-1x
|
2015-10-25 13:29:02 +02:00
|
|
|
= @conference.program.speakers.confirmed.count
|
2014-12-05 16:04:34 +01:00
|
|
|
Confirmed
|
2025-01-30 16:21:30 +01:00
|
|
|
= pluralize(@conference.program.speakers.confirmed.count, 'Speaker')
|
2015-10-25 13:29:02 +02:00
|
|
|
- @conference.program.speakers.confirmed.each do |speaker|
|
2017-05-13 21:08:40 +05:30
|
|
|
= link_to image_tag(speaker.gravatar_url(size: '25'), title: "#{speaker.name}!", class: 'img-circle'), user_path(speaker)
|