osem-fcy/app/views/ticket_purchases/index.html.haml
Andrew Kvalheim 1f31c1c80d Correct invalid table markup
- Add required <tr> within <thead>
  - Add implicit <tbody> after <thead>
2023-03-04 14:33:08 -08:00

31 lines
970 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
%tr
%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!