Tidying up.
This commit is contained in:
parent
6e10357631
commit
128bb427c6
1 changed files with 18 additions and 7 deletions
|
|
@ -6,11 +6,14 @@
|
||||||
= "(#{@events.length})" if @events.any?
|
= "(#{@events.length})" if @events.any?
|
||||||
|
|
||||||
.btn-group.pull-right
|
.btn-group.pull-right
|
||||||
%button.btn.btn-primary{ 'data-toggle' => 'modal', 'data-target' => '#mass-commercials-modal', title: 'Mass import of commercials for events' }
|
%button.btn.btn-primary{ title: 'Mass import of commercials for events',
|
||||||
|
data: { toggle: 'modal', target: '#mass-commercials-modal' } }
|
||||||
Add Commercials
|
Add Commercials
|
||||||
|
|
||||||
- if can? :create, Event
|
- if can? :create, Event
|
||||||
= link_to 'Add Event', new_admin_conference_program_event_path(@conference.short_title), class: 'button btn btn-default btn-info'
|
= link_to 'Add Event',
|
||||||
|
new_admin_conference_program_event_path(@conference.short_title),
|
||||||
|
class: 'button btn btn-default btn-info'
|
||||||
|
|
||||||
- if can? :read, Event
|
- if can? :read, Event
|
||||||
- @export_formats.each do |export_format|
|
- @export_formats.each do |export_format|
|
||||||
|
|
@ -34,17 +37,25 @@
|
||||||
%b 11:https://youtube.com/myvideo
|
%b 11:https://youtube.com/myvideo
|
||||||
|
|
||||||
.modal-body
|
.modal-body
|
||||||
= semantic_form_for '', url: mass_upload_commercials_admin_conference_program_path(@conference.short_title), method: :post do |f|
|
= semantic_form_for '',
|
||||||
|
url: mass_upload_commercials_admin_conference_program_path(@conference.short_title),
|
||||||
|
method: :post do |f|
|
||||||
= f.input 'file', as: :file
|
= f.input 'file', as: :file
|
||||||
.modal-footer
|
.modal-footer
|
||||||
= f.submit 'Add', class: 'btn btn-primary'
|
= f.submit 'Add', class: 'btn btn-primary'
|
||||||
.row
|
.row
|
||||||
.col-md-4
|
.col-md-4
|
||||||
= render partial: 'admin/conferences/doughnut_chart', locals: { title: 'Events state', data: @event_distribution }
|
= render 'admin/conferences/doughnut_chart',
|
||||||
|
title: 'Events state',
|
||||||
|
data: @event_distribution
|
||||||
.col-md-4
|
.col-md-4
|
||||||
= render partial: 'admin/conferences/doughnut_chart', locals: { title: 'Confirmed events scheduled', data: @scheduled_event_distribution }
|
= render 'admin/conferences/doughnut_chart',
|
||||||
|
title: 'Confirmed events scheduled',
|
||||||
|
data: @scheduled_event_distribution
|
||||||
.col-md-4
|
.col-md-4
|
||||||
= render partial: 'admin/conferences/doughnut_chart', locals: { title: 'Tracks of confirmed events', data: @tracks_distribution_confirmed }
|
= render 'admin/conferences/doughnut_chart',
|
||||||
|
title: 'Tracks of confirmed events',
|
||||||
|
data: @tracks_distribution_confirmed
|
||||||
.row
|
.row
|
||||||
.col-md-12
|
.col-md-12
|
||||||
.margin-event-table
|
.margin-event-table
|
||||||
|
|
@ -61,7 +72,7 @@
|
||||||
%b Submitter
|
%b Submitter
|
||||||
%th
|
%th
|
||||||
%b Speakers
|
%b Speakers
|
||||||
-if @program.languages.present?
|
- if @program.languages.present?
|
||||||
%th
|
%th
|
||||||
%b Language
|
%b Language
|
||||||
%th
|
%th
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue