Add charts about sold tickets
This commit is contained in:
parent
41503bb7a0
commit
8cd3326520
3 changed files with 28 additions and 1 deletions
|
|
@ -60,6 +60,17 @@
|
||||||
unit: 'weeks' }
|
unit: 'weeks' }
|
||||||
.col-md-4
|
.col-md-4
|
||||||
= render partial: 'doughnut_chart', locals: { title: 'User', data: @user_distribution }
|
= render partial: 'doughnut_chart', locals: { title: 'User', data: @user_distribution }
|
||||||
|
.row#tickets
|
||||||
|
.col-md-8
|
||||||
|
= render partial: 'line_chart', locals: { title: 'Tickets sold over time',
|
||||||
|
name: 'tickets',
|
||||||
|
conferences: @conferences,
|
||||||
|
active_conferences: @active_conferences,
|
||||||
|
deactive_conferences: @deactive_conferences,
|
||||||
|
y: @tickets,
|
||||||
|
x: @ticket_weeks,
|
||||||
|
unit: 'weeks' }
|
||||||
|
%br
|
||||||
.row
|
.row
|
||||||
.col-md-8
|
.col-md-8
|
||||||
%ul.nav.nav-tabs#recentTable
|
%ul.nav.nav-tabs#recentTable
|
||||||
|
|
|
||||||
|
|
@ -69,6 +69,17 @@
|
||||||
.col-md-4
|
.col-md-4
|
||||||
= render partial: 'todo_list', locals: { conference_progress: @conference_progress,
|
= render partial: 'todo_list', locals: { conference_progress: @conference_progress,
|
||||||
conference: @conference }
|
conference: @conference }
|
||||||
|
.row#tickets
|
||||||
|
.col-md-8
|
||||||
|
=render partial: 'line_chart', locals: { title: 'Tickets sold over time',
|
||||||
|
name: 'tickets',
|
||||||
|
conferences: @tickets,
|
||||||
|
active_conferences: @tickets,
|
||||||
|
deactive_conferences: [],
|
||||||
|
y: @tickets_data,
|
||||||
|
x: @ticket_weeks,
|
||||||
|
unit: 'weeks' }
|
||||||
|
%br
|
||||||
.row
|
.row
|
||||||
.col-md-12#doughnut
|
.col-md-12#doughnut
|
||||||
%ul.nav.nav-tabs#doughnut_tabs
|
%ul.nav.nav-tabs#doughnut_tabs
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,12 @@
|
||||||
%h1 Tickets
|
%h1 Tickets
|
||||||
%p.text-muted
|
%p.text-muted
|
||||||
Tickets to get during registration
|
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?
|
- if @conference.tickets.any?
|
||||||
.row
|
.row
|
||||||
.col-md-12
|
.col-md-12
|
||||||
|
|
@ -36,4 +42,3 @@
|
||||||
.row
|
.row
|
||||||
.col-md-12
|
.col-md-12
|
||||||
= link_to 'Add Ticket', new_admin_conference_ticket_path, class: 'btn btn-success pull-right'
|
= link_to 'Add Ticket', new_admin_conference_ticket_path, class: 'btn btn-success pull-right'
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue