2014-08-28 15:21:05 +02:00
|
|
|
%tr
|
|
|
|
|
%td.col-sm-8.col-md-6
|
|
|
|
|
.media
|
|
|
|
|
.media-body
|
|
|
|
|
%h4.media-heading
|
|
|
|
|
= ticket.title
|
|
|
|
|
%h5.media-heading
|
2016-08-06 00:57:07 +02:00
|
|
|
- unless ticket.description.blank?
|
2014-08-28 15:21:05 +02:00
|
|
|
= markdown(ticket.description)
|
|
|
|
|
%td.col-sm-1.col-md-1
|
|
|
|
|
- if ticket.bought?(current_user)
|
|
|
|
|
= text_field_tag("tickets[][#{ticket.id}]", ticket.quantity_bought_by(current_user),
|
2014-12-05 16:04:34 +01:00
|
|
|
type: 'number', min: 0, class: "form-control quantity", 'data-id' => ticket.id)
|
2014-08-28 15:21:05 +02:00
|
|
|
- else
|
|
|
|
|
= text_field_tag("tickets[][#{ticket.id}]", 0, type: 'number', min: 0,
|
2014-12-05 16:04:34 +01:00
|
|
|
class: "form-control quantity", 'data-id' => ticket.id)
|
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
|