2014-11-14 11:58:36 +01:00
|
|
|
.container
|
|
|
|
|
.row
|
|
|
|
|
.col-md-12
|
|
|
|
|
.page-header
|
|
|
|
|
%h1
|
|
|
|
|
Tickets
|
|
|
|
|
%p.lead
|
2018-12-29 00:08:32 -08:00
|
|
|
Please choose your tickets for
|
2014-12-05 16:04:34 +01:00
|
|
|
%strong
|
2014-11-14 11:58:36 +01:00
|
|
|
= @conference.title
|
2018-12-29 00:08:32 -08:00
|
|
|
= form_tag(conference_ticket_purchases_path, method: :post) do |f|
|
2014-11-14 11:58:36 +01:00
|
|
|
%table.table.table-hover
|
|
|
|
|
%thead
|
|
|
|
|
%tr
|
|
|
|
|
%th Ticket
|
2018-12-29 00:08:32 -08:00
|
|
|
- if @conference.tickets.for_registration.any?
|
|
|
|
|
%th Registration Ticket
|
2014-11-14 11:58:36 +01:00
|
|
|
%th Quantity
|
|
|
|
|
%th Price
|
|
|
|
|
%th Total
|
|
|
|
|
%tbody
|
2014-12-09 15:19:01 +01:00
|
|
|
- @conference.tickets.each do |ticket|
|
2018-12-29 00:08:32 -08:00
|
|
|
= render 'ticket', f: f, ticket: ticket
|
2014-12-17 16:56:31 +01:00
|
|
|
%tr
|
2017-08-12 03:01:36 +05:30
|
|
|
%td
|
2018-12-29 00:08:32 -08:00
|
|
|
- if @conference.tickets.for_registration.any?
|
|
|
|
|
%td
|
2014-12-17 16:56:31 +01:00
|
|
|
%td
|
|
|
|
|
%td.col-sm-1.col-md-1.text-center
|
|
|
|
|
%h4
|
|
|
|
|
Total
|
|
|
|
|
%td.col-sm-1.col-md-1.text-center
|
|
|
|
|
%h4
|
|
|
|
|
%strong
|
|
|
|
|
= @conference.tickets.first.price.symbol
|
2018-12-29 00:08:32 -08:00
|
|
|
%span{ id: 'total_price' }
|
2014-12-17 16:56:31 +01:00
|
|
|
0
|
2014-11-14 11:58:36 +01:00
|
|
|
.pull-right
|
2014-12-05 16:04:34 +01:00
|
|
|
.btn-group-vertical
|
|
|
|
|
= button_tag(type: 'submit', class: 'btn btn-success btn-lg') do
|
2016-07-27 19:40:21 +05:30
|
|
|
Continue
|
2022-05-18 06:31:12 +02:00
|
|
|
%i.fa-solid.fa-cart-shopping
|
2018-12-29 00:08:32 -08:00
|
|
|
= link_to 'Back to registration',
|
|
|
|
|
conference_conference_registration_path(@conference.short_title),
|
|
|
|
|
class: 'btn btn-default btn-sm'
|
|
|
|
|
- if @conference.tickets.for_registration.any?
|
|
|
|
|
.row
|
|
|
|
|
.col-md-13
|
|
|
|
|
%p.text-muted.text-center
|
|
|
|
|
%small
|
|
|
|
|
Getting a registration ticket is mandatory. Your participation
|
|
|
|
|
will not be valid until you get a registration ticket.
|