Fullcalendar integration in progress
This commit is contained in:
parent
1bc6b092de
commit
9d6ab55d13
2 changed files with 25 additions and 4 deletions
|
|
@ -3,4 +3,20 @@
|
|||
|
||||
%h1.text-center
|
||||
Vertical Schedule for
|
||||
= @conference.title
|
||||
= @conference.title
|
||||
|
||||
#calendar
|
||||
|
||||
:javascript
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
var calendarEl = document.getElementById('calendar');
|
||||
|
||||
var calendar = new FullCalendar.Calendar(calendarEl, {
|
||||
timeZone: 'UTC',
|
||||
initialView: 'resourceTimeGridDay',
|
||||
resources: "<%= @rooms >",
|
||||
events: "<%= @event_schedules >"
|
||||
});
|
||||
|
||||
calendar.render();
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue