Show reg status for tickets.

This commit is contained in:
Michael Ball 2020-01-08 00:07:25 -08:00
parent 350371f79d
commit 0b512b1385
3 changed files with 7 additions and 7 deletions

View file

@ -16,6 +16,7 @@
%th ID %th ID
%th Type %th Type
%th User %th User
%th Registration?
%th Actions %th Actions
%tbody %tbody
- @physical_tickets.each do |physical_ticket| - @physical_tickets.each do |physical_ticket|
@ -23,6 +24,7 @@
%td= physical_ticket.id %td= physical_ticket.id
%td= physical_ticket.ticket.title %td= physical_ticket.ticket.title
%td= physical_ticket.user.name %td= physical_ticket.user.name
%td= physical_ticket.ticket.registration_ticket? ? 'Yes' : 'No'
%td %td
.btn-group .btn-group
= link_to 'Show', = link_to 'Show',

View file

@ -3,9 +3,9 @@
.media .media
.media-body .media-body
%h4.media-heading= ticket.title %h4.media-heading= ticket.title
%h5.media-heading= markdown(ticket.description) .media-heading= markdown(ticket.description)
- if @conference.tickets.for_registration.any? %td.col-sm-1.col-md-2
%td.col-sm-1.col-md-2.text-center %span.text-center
= ticket.registration_ticket? ? 'Yes' : 'No' = ticket.registration_ticket? ? 'Yes' : 'No'
%td.col-sm-1.col-md-1 %td.col-sm-1.col-md-1
:ruby :ruby

View file

@ -13,8 +13,7 @@
%thead %thead
%tr %tr
%th Ticket %th Ticket
- if @conference.tickets.for_registration.any? %th Registration?
%th Registration Ticket
%th Quantity %th Quantity
%th Price %th Price
%th Total %th Total
@ -23,8 +22,7 @@
= render 'ticket', f: f, ticket: ticket = render 'ticket', f: f, ticket: ticket
%tr %tr
%td %td
- if @conference.tickets.for_registration.any? %td
%td
%td %td
%td.col-sm-1.col-md-1.text-center %td.col-sm-1.col-md-1.text-center
%h4 %h4