osem-fcy/app/views/ticket_purchases/index.html.haml
siddhantbajaj a327d2cbd2 Ticket Purchase Index Page
List all the unpaid ticket purchases of the user for that conference and allow user to pay for them.
2017-07-06 02:46:53 +05:30

30 lines
944 B
Text

.container
.row
.col-md-12.page-header
%h2
Ticket Purchases
.text-muted
Your unpaid ticket purchases for the conference
.col-md-12
- if @unpaid_ticket_purchases.present?
%table.table.table-bordered.table-striped.table-hover#roles
%thead
%th ID
%th Type
%th Quantity
%th Date
%th Actions
%tbody
- @unpaid_ticket_purchases.each do |ticket_purchase|
%tr
%td= ticket_purchase.id
%td= ticket_purchase.ticket.title
%td= ticket_purchase.quantity
%td= ticket_purchase.created_at.strftime('%B %d, %Y')
%td
.btn-group
= link_to 'Pay', new_conference_payment_path,
class: 'btn btn-primary'
- else
%h5 You don't have any unpaid ticket purchase!