mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
142 lines
4.9 KiB
Text
142 lines
4.9 KiB
Text
.row
|
|
.col-md-12
|
|
.page-header
|
|
%h1
|
|
Events
|
|
= "(#{@events.length})" if @events.any?
|
|
|
|
.btn-group.pull-right
|
|
%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'
|
|
|
|
- if can? :read, Event
|
|
- @export_formats.each do |export_format|
|
|
= render 'export_menu',
|
|
export_format: export_format,
|
|
conference_id: @conference.short_title
|
|
|
|
%p.text-muted
|
|
All the submissions of your speakers
|
|
|
|
.modal#mass-commercials-modal
|
|
.modal-dialog
|
|
.modal-content
|
|
.modal-header
|
|
%h1 Add commercials to events
|
|
.text-muted
|
|
Upload your file with data in the following format:
|
|
%b Event_ID:Commercial_Link
|
|
, eg.
|
|
%br
|
|
%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|
|
|
= f.input 'file', as: :file
|
|
.modal-footer
|
|
= f.submit 'Add', class: 'btn btn-primary'
|
|
.row
|
|
.col-md-4
|
|
= render 'admin/conferences/doughnut_chart',
|
|
title: 'Events state',
|
|
data: @event_distribution
|
|
.col-md-4
|
|
= render 'admin/conferences/doughnut_chart',
|
|
title: 'Confirmed events scheduled',
|
|
data: @scheduled_event_distribution
|
|
.col-md-4
|
|
= render 'admin/conferences/doughnut_chart',
|
|
title: 'Tracks of confirmed events',
|
|
data: @tracks_distribution_confirmed
|
|
.row
|
|
.col-md-12
|
|
.margin-event-table
|
|
%table.table.table-striped.table-bordered.table-hover.datatable
|
|
%thead
|
|
%th
|
|
%b ID
|
|
%th
|
|
%b Title
|
|
- if @program.rating_enabled?
|
|
%th
|
|
%b Rating
|
|
%th
|
|
%b Submitter
|
|
%th
|
|
%b Speakers
|
|
- if @program.languages.present?
|
|
%th
|
|
%b Language
|
|
%th
|
|
%b Requires Registration
|
|
%th
|
|
%b Highlight
|
|
%th
|
|
%b Type
|
|
%th
|
|
%b Track
|
|
%th
|
|
%b Difficulty
|
|
%th
|
|
%b State
|
|
%th
|
|
.fa.fa-comment
|
|
- @events.each do |event|
|
|
%tr
|
|
%td
|
|
= event.id
|
|
%td
|
|
= link_to event.title, admin_conference_program_event_path(@conference.short_title, event)
|
|
|
|
- if @program.rating_enabled?
|
|
%td.col-md-1{ data: { order: event.average_rating } }
|
|
= render 'datatable_row_rating',
|
|
event: event,
|
|
show_votes: @program.show_voting?,
|
|
max_rating: @program.rating
|
|
|
|
- if event.submitter && event.submitter.registrations && event.submitter.registrations.count < 1
|
|
- bgcolor = '#F7819F'
|
|
- else
|
|
- bgcolor = ''
|
|
%td{ style: "background-color: #{bgcolor}" }
|
|
- unless event.submitter.nil?
|
|
= link_to event.submitter.name, admin_user_path(event.submitter)
|
|
- if event.submitter.registrations.count < 1
|
|
(Unregistered!)
|
|
- else
|
|
Unknown submitter
|
|
%td
|
|
- event.speakers_ordered.each do |speaker|
|
|
.speaker
|
|
= link_to speaker.name, admin_user_path(speaker)
|
|
|
|
- if @program.languages.present?
|
|
%td
|
|
= event.language
|
|
|
|
%td.text-center{ 'data-order' => "#{event.require_registration}" }
|
|
= event_switch_checkbox(event, :require_registration, @conference.short_title)
|
|
- if event.require_registration
|
|
= link_to registered_text(event), registrations_admin_conference_program_event_path(@conference.short_title, event), class: 'btn btn-xs btn-default'
|
|
|
|
%td.text-center{ 'data-order' => "#{event.is_highlight}" }
|
|
= event_switch_checkbox(event, :is_highlight, @conference.short_title)
|
|
%td
|
|
= event_type_dropdown(event, @event_types, @conference.short_title)
|
|
%td
|
|
= track_dropdown(event, @tracks, @conference.short_title)
|
|
%td
|
|
= difficulty_dropdown(event, @difficulty_levels, @conference.short_title)
|
|
%td
|
|
= state_dropdown(event, @conference.short_title, @conference.email_settings)
|
|
%td.text-center
|
|
= link_to "#{event.comments_count}", admin_conference_program_event_path(@conference.short_title, event), anchor: 'comments-div'
|