2014-11-25 10:47:18 +01:00
|
|
|
.row
|
|
|
|
|
.col-md-12
|
|
|
|
|
.page-header
|
|
|
|
|
%h1 Tickets
|
|
|
|
|
%p.text-muted
|
2016-08-12 13:21:47 +05:30
|
|
|
Tickets to get during registration
|
2017-04-25 18:22:39 +03:00
|
|
|
%br
|
2014-08-28 15:21:05 +02:00
|
|
|
- if @conference.tickets.any?
|
|
|
|
|
.row
|
|
|
|
|
.col-md-12
|
2018-06-15 18:20:18 -07:00
|
|
|
%table.datatable#tickets
|
2014-08-28 15:21:05 +02:00
|
|
|
%thead
|
2023-03-04 13:12:47 -08:00
|
|
|
%tr
|
|
|
|
|
%th Title
|
|
|
|
|
%th Price
|
|
|
|
|
%th Sold
|
|
|
|
|
%th Turnover
|
|
|
|
|
%th Registration Ticket
|
|
|
|
|
%th Actions
|
2014-08-28 15:21:05 +02:00
|
|
|
%tbody
|
2014-11-25 10:47:18 +01:00
|
|
|
- @conference.tickets.each do |ticket|
|
2014-08-28 15:21:05 +02:00
|
|
|
%tr
|
|
|
|
|
%td
|
2014-11-25 10:47:18 +01:00
|
|
|
= link_to(admin_conference_ticket_path(@conference.short_title, ticket.id)) do
|
|
|
|
|
= ticket.title
|
2014-08-28 15:21:05 +02:00
|
|
|
%td
|
|
|
|
|
= humanized_money_with_symbol ticket.price
|
|
|
|
|
%td
|
2016-03-18 00:25:15 +05:30
|
|
|
= ticket.tickets_sold
|
|
|
|
|
%td
|
2017-09-25 00:55:09 +05:30
|
|
|
= humanized_money_with_symbol ticket.tickets_turnover_total(ticket.id)
|
2017-08-07 15:10:06 +05:30
|
|
|
%td
|
|
|
|
|
= ticket.registration_ticket? ? 'Yes' : 'No'
|
2014-08-28 15:21:05 +02:00
|
|
|
%td
|
2014-11-25 10:47:18 +01:00
|
|
|
.btn-group
|
|
|
|
|
= link_to 'Edit', edit_admin_conference_ticket_path(@conference.short_title, ticket.id),
|
|
|
|
|
method: :get, class: 'btn btn-primary'
|
|
|
|
|
= link_to 'Delete', admin_conference_ticket_path(@conference.short_title, ticket.id),
|
2014-12-18 13:38:40 +01:00
|
|
|
method: :delete, class: 'btn btn-danger',
|
|
|
|
|
data: { confirm: "Do you really want to delete the Ticket for #{ticket.title}? Attention: All ticket purchases will be also deleted!" }
|
2014-11-25 10:47:18 +01:00
|
|
|
.row
|
|
|
|
|
.col-md-12
|
|
|
|
|
= link_to 'Add Ticket', new_admin_conference_ticket_path, class: 'btn btn-success pull-right'
|
2017-09-26 21:43:18 +05:30
|
|
|
= link_to 'Tickets Sold', admin_conference_physical_tickets_path, class: 'button btn btn-default btn-info pull-right'
|