2014-11-14 11:58:36 +01:00
|
|
|
.container
|
|
|
|
|
.row
|
|
|
|
|
.col-md-12
|
|
|
|
|
.page-header
|
|
|
|
|
%h1
|
|
|
|
|
Tickets
|
|
|
|
|
%p.lead
|
2016-07-27 19:40:21 +05:30
|
|
|
Please choose your tickets for
|
2014-12-05 16:04:34 +01:00
|
|
|
%strong
|
2014-11-14 11:58:36 +01:00
|
|
|
= @conference.title
|
2016-07-27 19:40:21 +05:30
|
|
|
here*
|
2014-11-14 11:58:36 +01:00
|
|
|
=form_tag(conference_ticket_purchases_path, method: :post) do |f|
|
|
|
|
|
%table.table.table-hover
|
|
|
|
|
%thead
|
|
|
|
|
%tr
|
|
|
|
|
%th Ticket
|
|
|
|
|
%th Quantity
|
|
|
|
|
%th Price
|
|
|
|
|
%th Total
|
|
|
|
|
%tbody
|
2014-12-09 15:19:01 +01:00
|
|
|
- @conference.tickets.each do |ticket|
|
|
|
|
|
= render partial: 'ticket', f: f, locals: {ticket: ticket}
|
2014-12-17 16:56:31 +01:00
|
|
|
%tr
|
|
|
|
|
%td
|
|
|
|
|
%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
|
|
|
|
|
%span{id: 'total_price'}
|
|
|
|
|
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
|
2014-12-05 16:04:34 +01:00
|
|
|
%i.fa.fa-shopping-cart
|
2016-09-26 20:57:11 +05:30
|
|
|
- if current_user.ticket_purchases.by_conference(@conference).any?
|
|
|
|
|
= link_to 'Back to registration', conference_conference_registration_path(@conference.short_title), class: 'btn btn-default btn-sm'
|
|
|
|
|
- else
|
|
|
|
|
= link_to 'Cancel registration', conference_conference_registration_path(@conference.short_title), method: :delete, class: 'btn btn-danger btn-sm',
|
|
|
|
|
data: { confirm: 'Are you sure you want to unregister?' }
|
2014-12-05 16:04:34 +01:00
|
|
|
.row
|
|
|
|
|
.col-md-13
|
|
|
|
|
%p.text-muted.text-center
|
|
|
|
|
%small
|
2016-08-11 23:17:31 +05:30
|
|
|
* Getting a ticket is mandatory. Your participation will not be valid until you get a ticket.
|