2016-08-05 20:04:26 +02:00
|
|
|
.unobtrusive-flash-container
|
|
|
|
|
|
2016-07-13 01:33:56 +02:00
|
|
|
.row
|
|
|
|
|
.col-md-12
|
|
|
|
|
.page-header
|
|
|
|
|
%h1 Schedule
|
|
|
|
|
%p.text-muted
|
|
|
|
|
Create the schedules for the conference
|
|
|
|
|
|
|
|
|
|
.row
|
|
|
|
|
.col-md-2
|
2016-07-29 01:05:15 +02:00
|
|
|
Selected schedule
|
2016-08-04 00:56:01 +02:00
|
|
|
= check_box_tag @conference.short_title, @schedule.id, (@schedule.id == @selected_schedule.try(:id)),
|
2016-08-04 19:20:11 +02:00
|
|
|
method: :patch, url: (admin_conference_program_path(@conference.short_title) + '?[program][selected_schedule_id]='),
|
|
|
|
|
class: 'switch-checkbox-schedule', data: { size: 'small',
|
2016-07-29 01:05:15 +02:00
|
|
|
off_color: 'warning',
|
|
|
|
|
on_text: 'Yes',
|
|
|
|
|
off_text: 'No' }
|
2016-07-13 01:33:56 +02:00
|
|
|
.h4
|
|
|
|
|
Unscheduled events
|
|
|
|
|
.unscheduled-events
|
2016-07-31 18:41:27 +02:00
|
|
|
- @unscheduled_events.each do |e|
|
2016-08-01 00:52:52 +02:00
|
|
|
= render partial: 'event', locals: { event: e, event_schedule_id: nil }
|
2016-07-13 01:33:56 +02:00
|
|
|
.col-md-10
|
|
|
|
|
%ul.nav.nav-tabs
|
|
|
|
|
- @dates.each do |date|
|
|
|
|
|
%li{ class: "#{ (@dates.first == date) ? 'active' : '' }"}
|
|
|
|
|
%a{ href: "##{date}" }
|
|
|
|
|
= date
|
|
|
|
|
.tab-content
|
|
|
|
|
- @dates.each do |date|
|
|
|
|
|
.tab-pane{ class: "#{ (@dates.first == date) ? 'active' : '' }", id: "#{date}" }
|
|
|
|
|
= render partial: 'day_tab', locals: { date: date }
|
|
|
|
|
|
2013-01-07 16:45:48 +01:00
|
|
|
:javascript
|
|
|
|
|
$(document).ready( function() {
|
2016-08-04 12:19:32 +02:00
|
|
|
Schedule.initialize("#{admin_conference_event_schedules_path(@conference)}", "#{@schedule.id}");
|
2016-07-13 01:33:56 +02:00
|
|
|
});
|