mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-14 12:14:03 +00:00
26 lines
917 B
Text
26 lines
917 B
Text
%tr
|
|
%td.col-sm-8.col-md-4
|
|
.media
|
|
.media-body
|
|
%h4.media-heading
|
|
= ticket.title
|
|
%h5.media-heading
|
|
- unless ticket.description.blank?
|
|
= markdown(ticket.description)
|
|
%td.col-sm-1.col-md-2.text-center
|
|
= ticket.registration_ticket? ? 'Yes' : 'No'
|
|
%td.col-sm-1.col-md-1
|
|
- options = { type: 'number', min: 0, 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?
|
|
= text_field_tag("tickets[][#{ticket.id}]", 0, options)
|
|
%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
|