2014-08-28 15:21:05 +02:00
|
|
|
%tr
|
2017-08-12 03:01:36 +05:30
|
|
|
%td.col-sm-8.col-md-4
|
2014-08-28 15:21:05 +02:00
|
|
|
.media
|
|
|
|
|
.media-body
|
2018-12-29 00:08:32 -08:00
|
|
|
%h4.media-heading= ticket.title
|
|
|
|
|
%h5.media-heading= markdown(ticket.description)
|
|
|
|
|
- if @conference.tickets.for_registration.any?
|
|
|
|
|
%td.col-sm-1.col-md-2.text-center
|
|
|
|
|
= ticket.registration_ticket? ? 'Yes' : 'No'
|
2014-08-28 15:21:05 +02:00
|
|
|
%td.col-sm-1.col-md-1
|
2018-12-29 00:08:32 -08:00
|
|
|
:ruby
|
|
|
|
|
options = {
|
|
|
|
|
type: 'number',
|
|
|
|
|
min: 0,
|
|
|
|
|
max: 99,
|
|
|
|
|
class: 'form-control quantity',
|
|
|
|
|
'data-id' => ticket.id
|
|
|
|
|
}
|
|
|
|
|
if ticket.registration_ticket?
|
|
|
|
|
options[:max] = 1
|
|
|
|
|
options[:disabled] = current_user.tickets.for_registration(
|
|
|
|
|
ticket.conference
|
|
|
|
|
).present?
|
|
|
|
|
end
|
2017-08-12 03:01:36 +05:30
|
|
|
= text_field_tag("tickets[][#{ticket.id}]", 0, options)
|
2014-08-28 15:21:05 +02:00
|
|
|
%td.col-sm-1.col-md-1.text-center
|
|
|
|
|
= ticket.price.symbol
|
|
|
|
|
%span{id: "price_#{ticket.id}"}
|
|
|
|
|
= humanized_money ticket.price
|
|
|
|
|
%td.col-sm-1.col-md-1.text-center
|
|
|
|
|
%strong
|
|
|
|
|
= ticket.price.symbol
|
|
|
|
|
%span.total_row{id: "total_row_#{ticket.id}"}
|
|
|
|
|
0
|