mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-15 04:34:03 +00:00
Added PhysicalTicket model and controller. It holds the information about each physical ticket bought at the purchase. Physical Tickets are created after every successfull payment.
35 lines
1.2 KiB
Text
35 lines
1.2 KiB
Text
.container
|
|
.row
|
|
.col-md-12.page-header
|
|
%h2
|
|
Tickets
|
|
.text-muted
|
|
Your tickets for the conference
|
|
|
|
.col-md-12
|
|
- if @physical_tickets.present?
|
|
%table.table.table-bordered.table-striped.table-hover#roles
|
|
%thead
|
|
%th ID
|
|
%th Type
|
|
%th User
|
|
%th Actions
|
|
%tbody
|
|
- @physical_tickets.each do |physical_ticket|
|
|
%tr
|
|
%td= physical_ticket.id
|
|
%td= physical_ticket.ticket.title
|
|
%td= physical_ticket.user.name
|
|
%td
|
|
.btn-group
|
|
= link_to 'Show',
|
|
conference_physical_ticket_path(@conference.short_title,
|
|
physical_ticket.id),
|
|
class: 'btn btn-primary'
|
|
= link_to 'Generate PDF',
|
|
conference_physical_ticket_path(@conference.short_title,
|
|
physical_ticket.id,
|
|
format: :pdf),
|
|
class: 'button btn btn-default btn-info'
|
|
- else
|
|
%h5 No Tickets found!
|