Add charts about sold tickets

This commit is contained in:
nasia 2017-04-25 18:22:39 +03:00 committed by Stella Rouzi
parent 41503bb7a0
commit 8cd3326520
3 changed files with 28 additions and 1 deletions

View file

@ -4,6 +4,12 @@
%h1 Tickets
%p.text-muted
Tickets to get during registration
.row
.col-md-4
= render partial: 'admin/conferences/doughnut_chart', locals: { title: 'Tickets sold', data: @tickets_sold_distribution,}
.col-md-4
= render partial: 'admin/conferences/doughnut_chart', locals: { title: 'Tickets turnover', data: @tickets_turnover_distribution }
%br
- if @conference.tickets.any?
.row
.col-md-12
@ -36,4 +42,3 @@
.row
.col-md-12
= link_to 'Add Ticket', new_admin_conference_ticket_path, class: 'btn btn-success pull-right'