Tidying up.
This commit is contained in:
parent
81bad2eb4d
commit
4951d085f5
4 changed files with 28 additions and 36 deletions
|
|
@ -6,11 +6,14 @@
|
|||
= "(#{@events.length})" if @events.any?
|
||||
|
||||
.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
|
||||
|
||||
- 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
|
||||
- @export_formats.each do |export_format|
|
||||
|
|
@ -34,17 +37,25 @@
|
|||
%b 11:https://youtube.com/myvideo
|
||||
|
||||
.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
|
||||
.modal-footer
|
||||
= f.submit 'Add', class: 'btn btn-primary'
|
||||
.row
|
||||
.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
|
||||
= 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
|
||||
= 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
|
||||
.col-md-12
|
||||
.margin-event-table
|
||||
|
|
@ -61,7 +72,7 @@
|
|||
%b Submitter
|
||||
%th
|
||||
%b Speakers
|
||||
-if @program.languages.present?
|
||||
- if @program.languages.present?
|
||||
%th
|
||||
%b Language
|
||||
%th
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue